com.ibm.crypto.pkcs11impl.module

Class PKCS11Principal

  1. java.lang.Object
  2. extended bycom.ibm.crypto.pkcs11impl.module.PKCS11Principal
All implemented interfaces:
java.io.Serializable, java.security.Principal

Deprecated.
  1. public class PKCS11Principal
  2. extends java.lang.Object
  3. implements java.security.Principal, java.io.Serializable

This class implements the Principal interface and represents the name of a PKCS11 library and session into which the user authenticated.

Principals such as this PKCS11Principal may be associated with a particular Subject to augment that Subject with an additional identity. Refer to the Subject class for more information on how to achieve this.

See Also:
Principal, Subject, Serialized Form

Constructor Summary

Constructor and Description
PKCS11Principal(java.lang.String name,com.ibm.crypto.pkcs11impl.provider.SessionManager manager)
Deprecated.

Method Summary

Modifier and Type Method and Description
  1. boolean
equals(java.lang.Object o)
Deprecated.
  1. java.lang.String
getName()
Deprecated.
  1. com.ibm.crypto.pkcs11impl.provider.SessionManager
getSessionManager()
Deprecated.
  1. int
hashCode()
Deprecated.
  1. java.lang.String
toString()
Deprecated.
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

Constructor Detail

PKCS11Principal

  1. public PKCS11Principal(java.lang.String name,
  2. com.ibm.crypto.pkcs11impl.provider.SessionManager manager)
Deprecated.
Create an PKCS11Principal with PKCS11 library name and session.

Parameters:
name - the path and name of PKCS11 library.

Method Detail

getSessionManager

  1. public com.ibm.crypto.pkcs11impl.provider.SessionManager getSessionManager( )
Deprecated.
Return the PKCS11 session handle for this PKCS11Principal.
Returns:
the PKCS11 session handle for this PKCS11Principal

getName

  1. public java.lang.String getName( )
Deprecated.
Return the PKCS11 library name for this PKCS11Principal.

Specified by:
getName in interface java.security.Principal
Returns:
the PKCS11 session handle for this PKCS11\Principal

toString

  1. public java.lang.String toString( )
Deprecated.
Return a string representation of this PKCS11Principal.

Specified by:
toString in interface java.security.Principal
Overrides:
toString in class java.lang.Object
Returns:
a string representation of this PKCS11Principal.

equals

  1. public boolean equals(java.lang.Object o)
Deprecated.
Compares the specified Object with this PKCS11Principal for equality. Returns true if the given object is also a PKCS11Principal and the two PKCS11Principals have the same dll name and session handle.

Specified by:
equals in interface java.security.Principal
Overrides:
equals in class java.lang.Object
Parameters:
o - Object to be compared for equality with this PKCS11Principal.
Returns:
true if the specified Object is equal equal to this PKCS11Principal.

hashCode

  1. public int hashCode()
Deprecated.
Return a hash code for this PKCS11Principal.

Specified by:
hashCode in interface java.security.Principal
Overrides:
hashCode in class java.lang.Object
Returns:
a hash code for this PKCS11Principal.