|
Sun Adapter for LDAP API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface KeyStoreUtil
Provides basic utility methods on the keystore such as generating secret keys, getting keys, etc.
| Field Summary | |
|---|---|
static java.lang.String |
KEYSTORE_PASSWORD_PROPERTY_KEY
The property key for password of the keystore. |
static java.lang.String |
KEYSTORE_TYPE_PROPERTY_KEY
The property key for type of the keystore. |
static java.lang.String |
KEYSTORE_URL_PROPERTY_KEY
The property key for URL of the keystore. |
| Method Summary | |
|---|---|
void |
addSymmetricKeyToKeyStore(int aKeySize,
java.lang.String aAlgorithm,
java.lang.String aAlias,
char[] aPassword)
Geneartes a symmetric key(secret key) and stores it in the keystore. |
java.security.Key |
getKey(java.lang.String aAlias,
char[] aPassword)
Returns the key stored in the keystore under the specified alias and password. |
| Field Detail |
|---|
static final java.lang.String KEYSTORE_URL_PROPERTY_KEY
static final java.lang.String KEYSTORE_TYPE_PROPERTY_KEY
static final java.lang.String KEYSTORE_PASSWORD_PROPERTY_KEY
| Method Detail |
|---|
void addSymmetricKeyToKeyStore(int aKeySize,
java.lang.String aAlgorithm,
java.lang.String aAlias,
char[] aPassword)
aKeySize - The key size.aAlgorithm - The name of the algorithm.aAlias - The alias name.aPassword - The password for the key.
java.lang.SecurityException - Thrown when failed to create the symmetric
key.
java.security.Key getKey(java.lang.String aAlias,
char[] aPassword)
aAlias - The alias name.aPassword - The password for the key.
java.lang.SecurityException - Thrown when failed to create the symmetric
key.
|
Sun Adapter for LDAP API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||