|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rsa.jsafe.JSAFE_SessionSpec
com.rsa.jsafe.JSAFE_PKCS11SessionSpec
This class specifies how to instantiate a
JSAFE_Session object that establishes a session
with a PKCS #11-compliant device.
See Overview of Crypto-J for background and reference material on using and understanding Crypto-J.
JSAFE_Session| Constructor Summary | |
JSAFE_PKCS11SessionSpec(String libraryName,
String tokenLabel,
char[] password,
int offset,
int len)
Specifies how to instantiate a |
|
| Method Summary | |
void |
clearSensitiveData()
This method clears sensitive data from an object. |
void |
deobfuscate()
De-obfuscates sensitive data to use it. |
byte[] |
getCryptokiFunctions(JSAFE_Session theSession)
Points a function list pointer to the list of Cryptoki functions. |
com.rsa.jsafe.JSAFE_DeviceBuilder[] |
getDeviceBuilders()
Gets the device builder or builders associated with this specification. |
getLibraryName()
Gets the name of the shared library that is the PKCS #11 library for the token. |
|
byte[] |
getPassPhrase()
Gets the passphrase as a |
byte[] |
getSessionHandle(JSAFE_Session theSession)
Converts the native element session handle to a Java |
getTokenLabel()
Gets the token label passed in at construction. |
|
getTokenLabel(JSAFE_Session theSession)
Gets the name of the token's label. |
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JSAFE_PKCS11SessionSpec(String libraryName,
String tokenLabel,
char[] password,
int offset,
int len)
JSAFE_Session object that
establishes a session with a token via the specified PKCS #11 library.
libraryName - The name of the PKCS #11 vendor-supplied shared library.tokenLabel - The token label, at most 32 characters. If no label is
specified, Crypto-J uses the first token it finds.password - The user PIN or passphrase.offset - The user PIN starts here.len - The user PIN length.| Method Detail |
public com.rsa.jsafe.JSAFE_DeviceBuilder[] getDeviceBuilders()
1. The array is there in case it is needed.
getDeviceBuilders in class JSAFE_SessionSpecDeviceBuilder array for this
SessionSpec.public byte[] getSessionHandle(JSAFE_Session theSession)
byte
array for storage. This routine returns that byte array.
theSession - The JSAFE_Session this specification helped
build.
byte array holding the session handle.
The return can be null if theSession is
null, or is not the session associated with this specification.public byte[] getCryptokiFunctions(JSAFE_Session theSession)
byte array for storage. This routine returns that
byte array.
theSession - The JSAFE_Session this specification helped
build.
byte array holding the function list pointer.
The return can be null if theSession is
null, or is not the session associated with this specification.public String getLibraryName()
String that is the name of the library.public String getTokenLabel()
String that is the token's label.public String getTokenLabel(JSAFE_Session theSession)
theSession - The JSAFE_Session this specification
helped build.
String that is the token's label.public byte[] getPassPhrase()
byte array.
byte array that is the passphrase.public void deobfuscate()
public void clearSensitiveData()
clearSensitiveData(),
an Init (not a ReInit) method is
called to perform other operations with the object.
clearSensitiveData in class JSAFE_SessionSpec
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||