Enumeration<String> |
KeyStore.aliases() |
Lists all the alias names of this keystore.
|
boolean |
KeyStore.containsAlias(String alias) |
Checks if the given alias exists in this keystore.
|
void |
KeyStore.deleteEntry(String alias) |
Deletes the entry identified by the given alias from this keystore.
|
abstract void |
KeyStoreSpi.engineDeleteEntry(String alias) |
Deletes the entry identified by the given alias from this keystore.
|
KeyStore.Entry |
KeyStoreSpi.engineGetEntry(String alias,
KeyStore.ProtectionParameter protParam) |
Gets a KeyStore.Entry for the specified alias
with the specified protection parameter.
|
abstract void |
KeyStoreSpi.engineSetCertificateEntry(String alias,
Certificate cert) |
Assigns the given certificate to the given alias.
|
void |
KeyStoreSpi.engineSetEntry(String alias,
KeyStore.Entry entry,
KeyStore.ProtectionParameter protParam) |
Saves a KeyStore.Entry under the specified alias.
|
abstract void |
KeyStoreSpi.engineSetKeyEntry(String alias,
byte[] key,
Certificate[] chain) |
Assigns the given key (that has already been protected) to the given
alias.
|
abstract void |
KeyStoreSpi.engineSetKeyEntry(String alias,
Key key,
char[] password,
Certificate[] chain) |
Assigns the given key to the given alias, protecting it with the given
password.
|
boolean |
KeyStore.entryInstanceOf(String alias,
Class<? extends KeyStore.Entry> entryClass) |
Determines if the keystore Entry for the specified
alias is an instance or subclass of the specified
entryClass .
|
Certificate |
KeyStore.getCertificate(String alias) |
Returns the certificate associated with the given alias.
|
String |
KeyStore.getCertificateAlias(Certificate cert) |
Returns the (alias) name of the first keystore entry whose certificate
matches the given certificate.
|
Certificate[] |
KeyStore.getCertificateChain(String alias) |
Returns the certificate chain associated with the given alias.
|
Date |
KeyStore.getCreationDate(String alias) |
Returns the creation date of the entry identified by the given alias.
|
KeyStore.Entry |
KeyStore.getEntry(String alias,
KeyStore.ProtectionParameter protParam) |
Gets a keystore Entry for the specified alias
with the specified protection parameter.
|
static KeyStore |
KeyStore.getInstance(File file,
char[] password) |
Returns a loaded keystore object of the appropriate keystore type.
|
static KeyStore |
KeyStore.getInstance(File file,
KeyStore.LoadStoreParameter param) |
Returns a loaded keystore object of the appropriate keystore type.
|
static KeyStore |
KeyStore.getInstance(String type) |
Returns a keystore object of the specified type.
|
static KeyStore |
KeyStore.getInstance(String type,
String provider) |
Returns a keystore object of the specified type.
|
static KeyStore |
KeyStore.getInstance(String type,
Provider provider) |
Returns a keystore object of the specified type.
|
Key |
KeyStore.getKey(String alias,
char[] password) |
Returns the key associated with the given alias, using the given
password to recover it.
|
abstract KeyStore |
KeyStore.Builder.getKeyStore() |
Returns the KeyStore described by this object.
|
abstract KeyStore.ProtectionParameter |
KeyStore.Builder.getProtectionParameter(String alias) |
Returns the ProtectionParameters that should be used to obtain
the Entry with the given alias.
|
boolean |
KeyStore.isCertificateEntry(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(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(String alias,
Certificate cert) |
Assigns the given trusted certificate to the given alias.
|
void |
KeyStore.setEntry(String alias,
KeyStore.Entry entry,
KeyStore.ProtectionParameter protParam) |
Saves a keystore Entry under the specified alias.
|
void |
KeyStore.setKeyEntry(String alias,
byte[] key,
Certificate[] chain) |
Assigns the given key (that has already been protected) to the given
alias.
|
void |
KeyStore.setKeyEntry(String alias,
Key key,
char[] password,
Certificate[] chain) |
Assigns the given key to the given alias, protecting it with the given
password.
|
int |
KeyStore.size() |
Retrieves the number of entries in this keystore.
|
void |
KeyStore.store(OutputStream stream,
char[] password) |
Stores this keystore to the given output stream, and protects its
integrity with the given password.
|
void |
KeyStore.store(KeyStore.LoadStoreParameter param) |
Stores this keystore using the given LoadStoreParameter .
|