public class X509KeyManagerX509CredentialAdapter extends AbstractCredential implements X509Credential
X509KeyManager and exposes it as an X509Credential.| Constructor and Description |
|---|
X509KeyManagerX509CredentialAdapter(X509KeyManager manager,
String alias)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Credential> |
getCredentialType()
Get the primary type of the credential instance.
|
Collection<X509CRL> |
getCRLs()
Gets a collection of CRLs associated with the credential.
|
X509Certificate |
getEntityCertificate()
Gets the public key 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.
|
void |
setEntityId(String newEntityID)
Sets the ID of the entity this credential is for.
|
void |
setUsageType(UsageType newUsageType)
Sets the usage type for this credential.
|
getCredentialContextSet, getEntityId, getKeyNames, getSecretKey, getUsageType, setPrivateKey, setPublicKey, setSecretKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCredentialContextSet, getEntityId, getKeyNames, getSecretKey, getUsageTypepublic X509KeyManagerX509CredentialAdapter(@Nonnull X509KeyManager manager, @Nonnull String alias)
manager - wrapped key manageralias - alias used to reference the credential in the key manager@Nullable public Collection<X509CRL> getCRLs()
getCRLs in interface X509Credential@Nonnull public X509Certificate getEntityCertificate()
Credential.getPublicKey().getEntityCertificate in interface X509Credential@Nonnull public Collection<X509Certificate> getEntityCertificateChain()
getEntityCertificateChain in interface X509Credential@Nullable public PrivateKey getPrivateKey()
getPrivateKey in interface CredentialgetPrivateKey in class AbstractCredential@Nullable public PublicKey getPublicKey()
getPublicKey in interface CredentialgetPublicKey in class AbstractCredential@Nonnull public Class<? extends Credential> getCredentialType()
Credential implemented by an implementation.getCredentialType in interface Credentialpublic void setEntityId(@Nullable String newEntityID)
setEntityId in class AbstractCredentialnewEntityID - ID of the entity this credential is forpublic void setUsageType(@Nonnull UsageType newUsageType)
setUsageType in class AbstractCredentialnewUsageType - usage type for this credentialCopyright © 2021. All rights reserved.