|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rsa.jsafe.JSAFE_Object
com.rsa.jsafe.JSAFE_Session
This class establishes a session with a token present in a hardware device.
Use it in conjunction with subclasses of JSAFE_SessionSpec.
The JSAFE_Session class describes how to connect to a PKCS #11
device. An instance of this class sets up one of the JSAFE cryptographic
transformation objects (RSA and DSA signers, verifiers, key-pair generators,
etc.). It then calls on a PKCS #11 device to perform the functionality
specified when the object is created. Using an object of this class enables
Crypto-J to initialize the PKCS #11 device and create a new session to
perform the desired functionality on the device.
Creates and returns an object that encapsulates the information needed to open a session with a token in a device that supports the Cryptoki (PKCS #11) interface.
See Overview of Crypto-J for background and reference material on using and understanding Crypto-J.
Copyright © RSA Security Inc., 1999-2005. All rights reserved.
JSAFE_SessionSpec,
JSAFE_PKCS11SessionSpec,
Serialized Form| Method Summary | |
void |
clearSensitiveData()
This method clears sensitive data from an object. |
clone()
Duplicates the existing object. |
|
abstract void |
closeSession()
Closes the PKCS #11 session. |
abstract String |
getDevice()
Returns the name of the device (such as "PKCS11") for which this session is instantiated. |
getElement(String format)
|
|
static JSAFE_Session |
getInstance(JSAFE_SessionSpec spec)
Builds an object that establishes a session with a hardware token via the specified vendor-supplied shared library, or reuses a previously established session. |
getSessionSpec()
Gets a reference to the |
|
| Methods inherited from class com.rsa.jsafe.JSAFE_Object |
overwrite, overwrite |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static JSAFE_Session getInstance(JSAFE_SessionSpec spec)
throws JSAFE_UnimplementedException,
JSAFE_InvalidParameterException,
JSAFE_InvalidUseException
spec - An instance of JSAFE_SessionSpec that specifies
how and with which device the connection is established.
JSAFE_Session object that represents a session with
a hardware token.
JSAFE_UnimplementedException - If a device cannot be found,
or the specified token that meets the conditions
in the JSAFE_SessionSpec is not available.
JSAFE_InvalidParameterException - If the specified session is
null.
JSAFE_InvalidUseException - If no device builders exist for the
specified session.JSAFE_SessionSpec,
JSAFE_PKCS11SessionSpecpublic abstract void closeSession()
clearSensitiveData() calls this method.
The JSAFE_Session objects should be closed in the reverse
of the order they were created in.
public abstract String getDevice()
public JSAFE_SessionSpec getSessionSpec()
JSAFE_SessionSpec used by this
JSAFE_Session object.
This is a reference to the JSAFE_SessionSpec passed in during
the call to getInstance().
Returns the session specification used to build the system. The session specification may have new information inserted by the session.
JSAFE_SessionSpec used by this object, the specification
passed in during getInstance().public Object getElement(String format)
public Object clone()
throws CloneNotSupportedException
JSAFE_Object
clone in class JSAFE_Objectclone() method.
CloneNotSupportedExceptionpublic void clearSensitiveData()
clearSensitiveData(),
an Init (not a ReInit) method is
called to perform other operations with the object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||