public class KeyStoreX509CredentialAdapter extends BasicCredential implements X509Credential
KeyStore in to a X509Credential.| Modifier and Type | Field and Description |
|---|---|
private String |
credentialAlias
Alias to the credential to be exposed.
|
private char[] |
keyPassword
Password for the key to be exposed.
|
private KeyStore |
keyStore
Keystore that contains the credential to be exposed.
|
private Logger |
log
Class logger.
|
credentialContextSet, entityID, keyNames, privateKey, publicKey, secretKey, usageType| Constructor and Description |
|---|
KeyStoreX509CredentialAdapter(KeyStore store,
String alias,
char[] password)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<X509CRL> |
getCRLs()
Gets a collection of CRLs associated with the credential.
|
X509Certificate |
getEntityCertificate()
Gets the public certificate for the entity.
|
Collection<X509Certificate> |
getEntityCertificateChain()
Gets an immutable collection of certificates in the entity's trust chain.
|
PrivateKey |
getPrivateKey()
Gets the private key for the entity if there is one.
|
PublicKey |
getPublicKey()
Gets the public key for the entity.
|
getCredentialType, setEntityId, setPrivateKey, setPublicKey, setSecretKey, setUsageTypegetCredentalContextSet, getEntityId, getKeyNames, getSecretKey, getUsageTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCredentalContextSet, getCredentialType, getEntityId, getKeyNames, getSecretKey, getUsageTypeprivate Logger log
private KeyStore keyStore
private String credentialAlias
private char[] keyPassword
public Collection<X509CRL> getCRLs()
getCRLs in interface X509Credentialpublic X509Certificate getEntityCertificate()
Credential.getPublicKey().getEntityCertificate in interface X509Credentialpublic Collection<X509Certificate> getEntityCertificateChain()
getEntityCertificateChain in interface X509Credentialpublic PrivateKey getPrivateKey()
getPrivateKey in interface CredentialgetPrivateKey in class AbstractCredentialpublic PublicKey getPublicKey()
getPublicKey in interface CredentialgetPublicKey in class AbstractCredentialCopyright © 1999-2015. All Rights Reserved.