Package | Description |
---|---|
java.security |
Contains core language classes related to permission management.
|
Modifier and Type | Method and Description |
---|---|
java.util.Enumeration<java.lang.String> |
KeyStore.aliases()
Lists all the alias names of this keystore.
|
boolean |
KeyStore.containsAlias(java.lang.String alias)
Checks if the given alias exists in this keystore.
|
void |
KeyStore.deleteEntry(java.lang.String alias)
Deletes the entry identified by the given alias from this keystore.
|
abstract void |
KeyStoreSpi.engineDeleteEntry(java.lang.String alias)
Deletes the entry identified by the given alias from this keystore.
|
abstract void |
KeyStoreSpi.engineSetCertificateEntry(java.lang.String alias,
Certificate cert)
Assigns the given certificate to the given alias.
|
abstract void |
KeyStoreSpi.engineSetKeyEntry(java.lang.String alias,
byte[] key,
Certificate[] chain)
Assigns the given key (that has already been protected) to the given alias.
|
Certificate |
KeyStore.getCertificate(java.lang.String alias)
Returns the certificate associated with the given alias.
|
Certificate[] |
KeyStore.getCertificateChain(java.lang.String alias)
Returns the certificate chain associated with the given alias.
|
static KeyStore |
KeyStore.getInstance(java.lang.String type)
Returns a keystore object of the specified type.
|
Key |
KeyStore.getKey(java.lang.String alias,
char[] password)
Returns the key associated with the given alias, using the given password to recover it.
|
boolean |
KeyStore.isCertificateEntry(java.lang.String alias)
Returns true if the entry identified by the given alias was created by a call to
setCertificateEntry , or
created by a call to setEntry with a TrustedCertificateEntry . |
boolean |
KeyStore.isKeyEntry(java.lang.String alias)
Returns true if the entry identified by the given alias was created by a call to
setKeyEntry , or created
by a call to setEntry with a PrivateKeyEntry or a SecretKeyEntry . |
void |
KeyStore.setCertificateEntry(java.lang.String alias,
Certificate cert)
Assigns the given trusted certificate to the given alias.
|
void |
KeyStore.setKeyEntry(java.lang.String alias,
byte[] key,
Certificate[] chain)
Assigns the given key (that has already been protected) to the given alias.
|
int |
KeyStore.size()
Retrieves the number of entries in this keystore.
|