public class BasicX509Credential extends BasicCredential implements X509Credential
X509Credential.| Constructor and Description |
|---|
BasicX509Credential(X509Certificate entityCertificate)
Constructor.
|
BasicX509Credential(X509Certificate entityCertificate,
PrivateKey privateKey)
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.
|
PublicKey |
getPublicKey()
Gets the public key for the entity.
|
SecretKey |
getSecretKey()
This operation is unsupported for X.509 credentials.
|
void |
setCRLs(Collection<X509CRL> newCRLs)
Sets the CRLs for this credential.
|
void |
setEntityCertificate(X509Certificate newEntityCertificate)
Sets the entity certificate for this credential.
|
void |
setEntityCertificateChain(Collection<X509Certificate> newCertificateChain)
Sets the entity certificate chain for this credential.
|
void |
setPublicKey(PublicKey newPublicKey)
This operation is unsupported for X.509 credentials.
|
void |
setSecretKey(SecretKey newSecretKey)
This operation is unsupported for X.509 credentials.
|
setEntityId, setPrivateKey, setUsageTypegetCredentialContextSet, getEntityId, getKeyNames, getPrivateKey, getUsageTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCredentialContextSet, getEntityId, getKeyNames, getPrivateKey, getUsageTypepublic BasicX509Credential(@Nonnull X509Certificate entityCertificate)
entityCertificate - the credential entity certificatepublic BasicX509Credential(@Nonnull X509Certificate entityCertificate, @Nonnull PrivateKey privateKey)
entityCertificate - the credential entity certificateprivateKey - the credential private key@Nonnull public Class<? extends Credential> getCredentialType()
Credential implemented by an implementation.getCredentialType in interface CredentialgetCredentialType in class BasicCredential@Nullable public Collection<X509CRL> getCRLs()
getCRLs in interface X509Credentialpublic void setCRLs(@Nullable Collection<X509CRL> newCRLs)
newCRLs - CRLs for this credential@Nonnull public X509Certificate getEntityCertificate()
Credential.getPublicKey().getEntityCertificate in interface X509Credentialpublic void setEntityCertificate(@Nonnull X509Certificate newEntityCertificate)
newEntityCertificate - entity certificate for this credential@Nonnull public PublicKey getPublicKey()
getPublicKey in interface CredentialgetPublicKey in class AbstractCredentialpublic void setPublicKey(PublicKey newPublicKey)
setPublicKey in interface MutableCredentialsetPublicKey in class BasicCredentialnewPublicKey - not supported@Nonnull public Collection<X509Certificate> getEntityCertificateChain()
getEntityCertificateChain in interface X509Credentialpublic void setEntityCertificateChain(@Nonnull Collection<X509Certificate> newCertificateChain)
newCertificateChain - entity certificate chain for this credential@Nullable public SecretKey getSecretKey()
getSecretKey in interface CredentialgetSecretKey in class AbstractCredentialpublic void setSecretKey(SecretKey newSecretKey)
setSecretKey in interface MutableCredentialsetSecretKey in class BasicCredentialnewSecretKey - unsupportedCopyright © 2016 JBoss by Red Hat. All rights reserved.