public class CoreKeyStoreSpi extends KeyStoreSpi
Constructor and Description |
---|
CoreKeyStoreSpi(DirectoryService directoryService)
Creates a new instance of LocalKeyStore.
|
Modifier and Type | Method and Description |
---|---|
Enumeration<String> |
engineAliases() |
boolean |
engineContainsAlias(String alias) |
void |
engineDeleteEntry(String alias) |
Certificate |
engineGetCertificate(String alias) |
String |
engineGetCertificateAlias(Certificate cert) |
Certificate[] |
engineGetCertificateChain(String alias) |
Date |
engineGetCreationDate(String alias) |
Key |
engineGetKey(String alias,
char[] password) |
boolean |
engineIsCertificateEntry(String alias) |
boolean |
engineIsKeyEntry(String alias) |
void |
engineLoad(InputStream stream,
char[] password) |
void |
engineSetCertificateEntry(String alias,
Certificate cert) |
void |
engineSetKeyEntry(String alias,
byte[] key,
Certificate[] chain) |
void |
engineSetKeyEntry(String alias,
Key key,
char[] password,
Certificate[] chain) |
int |
engineSize() |
void |
engineStore(OutputStream stream,
char[] password) |
void |
setKeyStore(KeyStore keyStore) |
engineEntryInstanceOf, engineGetEntry, engineLoad, engineSetEntry, engineStore
public CoreKeyStoreSpi(DirectoryService directoryService)
directoryService
- The DirectoryService instancepublic void setKeyStore(KeyStore keyStore)
public Enumeration<String> engineAliases()
engineAliases
in class KeyStoreSpi
public boolean engineContainsAlias(String alias)
engineContainsAlias
in class KeyStoreSpi
public void engineDeleteEntry(String alias) throws KeyStoreException
engineDeleteEntry
in class KeyStoreSpi
KeyStoreException
public Certificate engineGetCertificate(String alias)
engineGetCertificate
in class KeyStoreSpi
public String engineGetCertificateAlias(Certificate cert)
engineGetCertificateAlias
in class KeyStoreSpi
public Certificate[] engineGetCertificateChain(String alias)
engineGetCertificateChain
in class KeyStoreSpi
public Date engineGetCreationDate(String alias)
engineGetCreationDate
in class KeyStoreSpi
public Key engineGetKey(String alias, char[] password) throws NoSuchAlgorithmException, UnrecoverableKeyException
engineGetKey
in class KeyStoreSpi
NoSuchAlgorithmException
UnrecoverableKeyException
public boolean engineIsCertificateEntry(String alias)
engineIsCertificateEntry
in class KeyStoreSpi
public boolean engineIsKeyEntry(String alias)
engineIsKeyEntry
in class KeyStoreSpi
public void engineLoad(InputStream stream, char[] password) throws IOException, NoSuchAlgorithmException, CertificateException
engineLoad
in class KeyStoreSpi
IOException
NoSuchAlgorithmException
CertificateException
public void engineSetCertificateEntry(String alias, Certificate cert) throws KeyStoreException
engineSetCertificateEntry
in class KeyStoreSpi
KeyStoreException
public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) throws KeyStoreException
engineSetKeyEntry
in class KeyStoreSpi
KeyStoreException
public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) throws KeyStoreException
engineSetKeyEntry
in class KeyStoreSpi
KeyStoreException
public int engineSize()
engineSize
in class KeyStoreSpi
public void engineStore(OutputStream stream, char[] password) throws IOException, NoSuchAlgorithmException, CertificateException
engineStore
in class KeyStoreSpi
IOException
NoSuchAlgorithmException
CertificateException
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.