com.ibm.crypto.pkcs11impl.module
Class PKCS11Principal
- java.lang.Object
-
- com.ibm.crypto.pkcs11impl.module.PKCS11Principal
-
- All Implemented Interfaces:
- java.io.Serializable, java.security.Principal
Deprecated.
public class PKCS11Principal extends java.lang.Object implements java.security.Principal, java.io.SerializableThis class implements the
Principalinterface and represents the name of a PKCS11 library and session into which the user authenticated.Principals such as this
PKCS11Principalmay be associated with a particularSubjectto augment thatSubjectwith an additional identity. Refer to theSubjectclass for more information on how to achieve this.- See Also:
Principal,Subject, Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description PKCS11Principal(java.lang.String name, SessionManager manager)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description booleanequals(java.lang.Object o)Deprecated.java.lang.StringgetName()Deprecated.SessionManagergetSessionManager()Deprecated.inthashCode()Deprecated.java.lang.StringtoString()Deprecated.
-
-
-
Constructor Detail
-
PKCS11Principal
public PKCS11Principal(java.lang.String name, SessionManager manager)Deprecated.Create anPKCS11Principalwith PKCS11 library name and session.- Parameters:
name- the path and name of PKCS11 library.sess- the PKCS11 session based on the PKCS11 library.
-
-
Method Detail
-
getSessionManager
public SessionManager getSessionManager()
Deprecated.Return the PKCS11 session handle for thisPKCS11Principal.- Returns:
- the PKCS11 session handle for this
PKCS11Principal
-
getName
public java.lang.String getName()
Deprecated.Return the PKCS11 library name for thisPKCS11Principal.- Specified by:
getNamein interfacejava.security.Principal- Returns:
- the PKCS11 session handle for this
PKCS11\Principal
-
toString
public java.lang.String toString()
Deprecated.Return a string representation of thisPKCS11Principal.- Specified by:
toStringin interfacejava.security.Principal- Overrides:
toStringin classjava.lang.Object- Returns:
- a string representation of this
PKCS11Principal.
-
equals
public boolean equals(java.lang.Object o)
Deprecated.Compares the specified Object with thisPKCS11Principalfor equality. Returns true if the given object is also aPKCS11Principaland the two PKCS11Principals have the same dll name and session handle.- Specified by:
equalsin interfacejava.security.Principal- Overrides:
equalsin classjava.lang.Object- Parameters:
o- Object to be compared for equality with thisPKCS11Principal.- Returns:
- true if the specified Object is equal equal to this
PKCS11Principal.
-
hashCode
public int hashCode()
Deprecated.Return a hash code for thisPKCS11Principal.- Specified by:
hashCodein interfacejava.security.Principal- Overrides:
hashCodein classjava.lang.Object- Returns:
- a hash code for this
PKCS11Principal.
-
-