Hi to all,
I am currently doing something with kerberos authentication. I currently trying to serialize the Subject which contains the credential, principal and etc.
Only the principal can be serialized as shown below
From java Docs:
This Subject class implements Serializable. While the Principals associated with the Subject are serialized, the credentials associated with the Subject are not. Note that the java.security.Principal class does not implement Serializable. Therefore all concrete Principal implementations associated with Subjects must implement Serializable.
Is there any to serialize the rest of the stuff in the Subject class?
Have been cracking my head for the past 1 week but no avail. Anyone has any ideas?
Thanks in advance
angktwap
I am currently doing something with kerberos authentication. I currently trying to serialize the Subject which contains the credential, principal and etc.
Only the principal can be serialized as shown below
From java Docs:
This Subject class implements Serializable. While the Principals associated with the Subject are serialized, the credentials associated with the Subject are not. Note that the java.security.Principal class does not implement Serializable. Therefore all concrete Principal implementations associated with Subjects must implement Serializable.
Is there any to serialize the rest of the stuff in the Subject class?
Have been cracking my head for the past 1 week but no avail. Anyone has any ideas?
Thanks in advance
angktwap