Name

Class java.security.KeyStoreSpi

Synopsis

This is the service provider interface for implementations of the keystore engine. Each method of the KeyStore class corresponds naturally to a method of this engine, which is expected to provide the required information. When the engine is asked to store a key and is given a password (an array of characters), the engine is expected to encrypt the key. The engine should not encrypt the entire database (using the password to the store( ) method); the database password is used to detect tampering but cannot be required to read the keystore.

Class Definition

public abstract class java.security.KeyStoreSpi extends java.lang.Object { // Constructors public KeyStoreSpi( ); // Instance Methods public abstract Enumeration engineAliases( ); public abstract boolean engineContainsAlias(String); public abstract void engineDeleteEntry(String); public abstract Certificate engineGetCertificate(String); public abstract String engineGetCertificateAlias(Certificate); public abstract Certificate[] engineGetCertificateChain(String); public abstract Date engineGetCreationDate(String); public abstract Key engineGetKey(String, char[]); public abstract boolean engineIsCertificateEntry(String); public abstract boolean engineIsKeyEntry(String); public abstract void engineLoad(InputStream, char[]); public abstract void engineSetCertificateEntry( String, Certificate); public abstract void engineSetKeyEntry(String, byte[], Certificate[]); public abstract void engineSetKeyEntry(String, ...

Get Java Security, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.