|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mozilla.jss.CryptoManager.InitializationValues
The various options that can be used to initialize CryptoManager.
Inner Class Summary | |
static class |
CryptoManager.InitializationValues.FIPSMode
This class enumerates the possible modes for FIPS compliance. |
Field Summary | |
java.lang.String |
certDBName
The path of the certificate database (cert7.db). |
CryptoManager.InitializationValues.FIPSMode |
fipsMode
The FIPS mode of the security library. |
java.lang.String |
keyDBName
The path of the key database (key3.db). |
int |
LIBRARY_LENGTH
Library description must be this length exactly. |
int |
MANUFACTURER_LENGTH
ManufacturerID must be this length exactly. |
java.lang.String |
modDBName
The path of the security module database (secmod[ule].db). |
boolean |
ocspCheckingEnabled
To have NSS check the OCSP responder for when verifying certificates, set this flags to true. |
java.lang.String |
ocspResponderCertNickname
The nickname of the cert to trust (expected) to sign the OCSP responses. |
java.lang.String |
ocspResponderURL
Specify the location and cert of the responder. |
PasswordCallback |
passwordCallback
The password callback to be used by JSS whenever a password is needed. |
boolean |
readOnly
To open the databases in read-only mode, set this flag to true . |
int |
SLOT_LENGTH
Slot names must be this length exactly. |
int |
TOKEN_LENGTH
Token names must be this length exactly. |
Constructor Summary | |
CryptoManager.InitializationValues(java.lang.String modDBName,
java.lang.String keyDBName,
java.lang.String certDBName)
Creates a new set of CryptoManager initialization values. |
Method Summary | |
java.lang.String |
getFIPSKeyStorageSlotDescription()
Returns the description of the internal PKCS #11 FIPS Key Storage slot. |
java.lang.String |
getFIPSSlotDescription()
Returns the description of the internal PKCS #11 FIPS slot. |
java.lang.String |
getInternalKeyStorageSlotDescription()
Returns the description of the internal PKCS #11 key storage slot. |
java.lang.String |
getInternalKeyStorageTokenDescription()
Returns the description of the internal PKCS #11 key storage token. |
java.lang.String |
getInternalSlotDescription()
Returns the description of the internal PKCS #11 slot. |
java.lang.String |
getInternalTokenDescription()
Returns the description of the internal PKCS #11 token. |
java.lang.String |
getLibraryDescription()
Returns the description of the internal PKCS #11 module. |
java.lang.String |
getManufacturerID()
Returns the Manufacturer ID of the internal PKCS #11 module. |
void |
setFIPSKeyStorageSlotDescription(java.lang.String s)
Sets the description of the internal PKCS #11 FIPS Key Storage slot. |
void |
setFIPSSlotDescription(java.lang.String s)
Sets the description of the internal PKCS #11 FIPS slot. |
void |
setInternalKeyStorageSlotDescription(java.lang.String s)
Sets the description of the internal PKCS #11 key storage slot. |
void |
setInternalKeyStorageTokenDescription(java.lang.String s)
Sets the description of the internal PKCS #11 key storage token. |
void |
setInternalSlotDescription(java.lang.String s)
Sets the description of the internal PKCS #11 slot. |
void |
setInternalTokenDescription(java.lang.String s)
Sets the description of the internal PKCS #11 token. |
void |
setLibraryDescription(java.lang.String s)
Sets the description of the internal PKCS #11 module. |
void |
setManufacturerID(java.lang.String s)
Sets the Manufacturer ID of the internal PKCS #11 module. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public final int TOKEN_LENGTH
public final int SLOT_LENGTH
public final int MANUFACTURER_LENGTH
public final int LIBRARY_LENGTH
public java.lang.String modDBName
public java.lang.String keyDBName
public java.lang.String certDBName
public PasswordCallback passwordCallback
CryptoToken.login
.
The default is a ConsolePasswordCallback
.
public CryptoManager.InitializationValues.FIPSMode fipsMode
FIPSMode.UNCHANGED
, since only
Admin Server is supposed to alter this value.
The default is FIPSMode.UNCHANGED
.
public boolean readOnly
true
. The default is false
, meaning
the databases are opened in read-write mode.public boolean ocspCheckingEnabled
public java.lang.String ocspResponderURL
public java.lang.String ocspResponderCertNickname
Constructor Detail |
public CryptoManager.InitializationValues(java.lang.String modDBName, java.lang.String keyDBName, java.lang.String certDBName)
CryptoManager.initialize()
. All the values have
defaults, except for modDBName, keyDBName, and certDBName,
which are passed in as parameters. All the values can be
modified after this constructor has been called.Method Detail |
public java.lang.String getManufacturerID()
The default is "mozilla.org "
.
public void setManufacturerID(java.lang.String s) throws CryptoManager.InvalidLengthException
MANUFACTURER_LENGTH
characters long.s.length()
is not
exactly MANUFACTURER_LENGTH
.public java.lang.String getLibraryDescription()
The default is "Internal Crypto Services "
.
public void setLibraryDescription(java.lang.String s) throws CryptoManager.InvalidLengthException
LIBRARY_LENGTH
characters long.s.length()
is
not exactly LIBRARY_LENGTH
.public java.lang.String getInternalTokenDescription()
The default is "Internal Crypto Services Token "
.
public void setInternalTokenDescription(java.lang.String s) throws CryptoManager.InvalidLengthException
TOKEN_LENGTH
characters long.s.length()
is
not exactly TOKEN_LENGTH
.public java.lang.String getInternalKeyStorageTokenDescription()
The default is "Internal Key Storage Token "
.
public void setInternalKeyStorageTokenDescription(java.lang.String s) throws CryptoManager.InvalidLengthException
TOKEN_LENGTH
characters long.s.length()
is
not exactly TOKEN_LENGTH
.public java.lang.String getInternalSlotDescription()
The default is "NSS Internal Cryptographic Services "
.
public void setInternalSlotDescription(java.lang.String s) throws CryptoManager.InvalidLengthException
SLOT_LENGTH
characters
long.s.length()
is
not exactly SLOT_LENGTH
.public java.lang.String getInternalKeyStorageSlotDescription()
The default is "NSS Internal Private Key and Certificate Storage "
.
public void setInternalKeyStorageSlotDescription(java.lang.String s) throws CryptoManager.InvalidLengthException
SLOT_LENGTH
characters
long.s.length()
is
not exactly SLOT_LENGTH
.public java.lang.String getFIPSSlotDescription()
The default is "NSS Internal FIPS-140-1 Cryptographic Services "
.
public void setFIPSSlotDescription(java.lang.String s) throws CryptoManager.InvalidLengthException
SLOT_LENGTH
characters
long.s.length()
is
not exactly SLOT_LENGTH
.public java.lang.String getFIPSKeyStorageSlotDescription()
The default is "NSS Internal FIPS-140-1 Private Key and Certificate Storage "
.
public void setFIPSKeyStorageSlotDescription(java.lang.String s) throws CryptoManager.InvalidLengthException
SLOT_LENGTH
characters
long.s.length()
is
not exactly SLOT_LENGTH
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |