Java java.security KeyStore fields, constructors, methods, implement or subclass

Example usage for Java java.security KeyStore fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.security KeyStore.

The text is from its open source code.

Subclass

java.security.KeyStore has subclasses.
Click this link to see all its subclasses.

Method

Enumerationaliases()
Lists all the alias names of this keystore.
booleancontainsAlias(String alias)
Checks if the given alias exists in this keystore.
voiddeleteEntry(String alias)
Deletes the entry identified by the given alias from this keystore.
booleanentryInstanceOf(String alias, Class entryClass)
Determines if the keystore Entry for the specified alias is an instance or subclass of the specified entryClass .
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
CertificategetCertificate(String alias)
Returns the certificate associated with the given alias.
StringgetCertificateAlias(Certificate cert)
Returns the (alias) name of the first keystore entry whose certificate matches the given certificate.
Certificate[]getCertificateChain(String alias)
Returns the certificate chain associated with the given alias.
ClassgetClass()
Returns the runtime class of this Object .
DategetCreationDate(String alias)
Returns the creation date of the entry identified by the given alias.
StringgetDefaultType()
Returns the default keystore type as specified by the keystore.type security property, or the string "jks" (acronym for "Java keystore" ) if no such property exists.
EntrygetEntry(String alias, ProtectionParameter protParam)
Gets a keystore Entry for the specified alias with the specified protection parameter.
KeyStoregetInstance(String type)
Returns a keystore object of the specified type.
KeyStoregetInstance(String type, String provider)
Returns a keystore object of the specified type.
KeyStoregetInstance(String type, Provider provider)
Returns a keystore object of the specified type.
KeyStoregetInstance(File file, char[] password)
Returns a loaded keystore object of the appropriate keystore type.
KeyStoregetInstance(File file, LoadStoreParameter param)
Returns a loaded keystore object of the appropriate keystore type.
KeygetKey(String alias, char[] password)
Returns the key associated with the given alias, using the given password to recover it.
ProvidergetProvider()
Returns the provider of this keystore.
StringgetType()
Returns the type of this keystore.
booleanisCertificateEntry(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 .
booleanisKeyEntry(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 .
voidload(InputStream stream, char[] password)
Loads this KeyStore from the given input stream.
voidload(LoadStoreParameter param)
Loads this keystore using the given LoadStoreParameter .
voidsetCertificateEntry(String alias, Certificate cert)
Assigns the given trusted certificate to the given alias.
voidsetEntry(String alias, Entry entry, ProtectionParameter protParam)
Saves a keystore Entry under the specified alias.
voidsetKeyEntry(String alias, Key key, char[] password, Certificate[] chain)
Assigns the given key to the given alias, protecting it with the given password.
voidsetKeyEntry(String alias, byte[] key, Certificate[] chain)
Assigns the given key (that has already been protected) to the given alias.
intsize()
Retrieves the number of entries in this keystore.
voidstore(OutputStream stream, char[] password)
Stores this keystore to the given output stream, and protects its integrity with the given password.
StringtoString()
Returns a string representation of the object.