public class X509KeyManagerX509CredentialAdapter extends BasicCredential implements X509Credential
X509KeyManager
and exposes it as an X509Credential
.Modifier and Type | Field and Description |
---|---|
private String |
credentialAlias
Alias used to reference the credential in the key manager.
|
private X509KeyManager |
keyManager
Wrapped key manager.
|
credentialContextSet, entityID, keyNames, privateKey, publicKey, secretKey, usageType
Constructor and Description |
---|
X509KeyManagerX509CredentialAdapter(X509KeyManager manager,
String alias)
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, setUsageType
getCredentalContextSet, getEntityId, getKeyNames, getSecretKey, getUsageType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCredentalContextSet, getCredentialType, getEntityId, getKeyNames, getSecretKey, getUsageType
private String credentialAlias
private X509KeyManager keyManager
public X509KeyManagerX509CredentialAdapter(X509KeyManager manager, String alias)
manager
- wrapped key manageralias
- alias used to reference the credential in the key managerpublic Collection<X509CRL> getCRLs()
getCRLs
in interface X509Credential
public X509Certificate getEntityCertificate()
Credential.getPublicKey()
.getEntityCertificate
in interface X509Credential
public Collection<X509Certificate> getEntityCertificateChain()
getEntityCertificateChain
in interface X509Credential
public PrivateKey getPrivateKey()
getPrivateKey
in interface Credential
getPrivateKey
in class AbstractCredential
public PublicKey getPublicKey()
getPublicKey
in interface Credential
getPublicKey
in class AbstractCredential
Copyright © 1999–2017. All rights reserved.