public class KeyStoreX509CredentialAdapter extends AbstractCredential implements X509Credential
KeyStore in to a X509Credential.| Constructor and Description |
|---|
KeyStoreX509CredentialAdapter(KeyStore store,
String alias,
char[] password)
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 KeyStoreX509CredentialAdapter(@Nonnull KeyStore store, @Nonnull String alias, @Nullable char[] password)
store - store containing key to be exposedalias - alias to the credential to be exposedpassword - password to the key to be exposed@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.