public class BasicX509Credential extends BasicCredential implements X509Credential
X509Credential.| Modifier and Type | Field and Description |
|---|---|
private java.util.Collection<java.security.cert.X509CRL> |
crls
CRLs for this credential.
|
private java.security.cert.X509Certificate |
entityCert
Entity certificate.
|
private java.util.Collection<java.security.cert.X509Certificate> |
entityCertChain
Entity certificate chain, must include entity certificate.
|
| Constructor and Description |
|---|
BasicX509Credential(java.security.cert.X509Certificate entityCertificate)
Constructor.
|
BasicX509Credential(java.security.cert.X509Certificate entityCertificate,
java.security.PrivateKey privateKey)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<? extends Credential> |
getCredentialType()
Get the primary type of the credential instance.
|
java.util.Collection<java.security.cert.X509CRL> |
getCRLs()
Gets a collection of CRLs associated with the credential.
|
java.security.cert.X509Certificate |
getEntityCertificate()
Gets the public key certificate for the entity.
|
java.util.Collection<java.security.cert.X509Certificate> |
getEntityCertificateChain()
Gets an immutable collection of certificates in the entity's trust chain.
|
java.security.PublicKey |
getPublicKey()
Gets the public key for the entity.
|
javax.crypto.SecretKey |
getSecretKey()
This operation is unsupported for X.509 credentials.
|
void |
setCRLs(java.util.Collection<java.security.cert.X509CRL> newCRLs)
Sets the CRLs for this credential.
|
void |
setEntityCertificate(java.security.cert.X509Certificate newEntityCertificate)
Sets the entity certificate for this credential.
|
void |
setEntityCertificateChain(java.util.Collection<java.security.cert.X509Certificate> newCertificateChain)
Sets the entity certificate chain for this credential.
|
void |
setPublicKey(java.security.PublicKey newPublicKey)
This operation is unsupported for X.509 credentials.
|
void |
setSecretKey(javax.crypto.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, getUsageTypeprivate java.security.cert.X509Certificate entityCert
private java.util.Collection<java.security.cert.X509Certificate> entityCertChain
private java.util.Collection<java.security.cert.X509CRL> crls
public BasicX509Credential(@Nonnull
java.security.cert.X509Certificate entityCertificate)
entityCertificate - the credential entity certificatepublic BasicX509Credential(@Nonnull
java.security.cert.X509Certificate entityCertificate,
@Nonnull
java.security.PrivateKey privateKey)
entityCertificate - the credential entity certificateprivateKey - the credential private key@Nonnull public java.lang.Class<? extends Credential> getCredentialType()
Credential implemented by an implementation.getCredentialType in interface CredentialgetCredentialType in class BasicCredential@Nullable public java.util.Collection<java.security.cert.X509CRL> getCRLs()
getCRLs in interface X509Credentialpublic void setCRLs(@Nullable
java.util.Collection<java.security.cert.X509CRL> newCRLs)
newCRLs - CRLs for this credential@Nonnull public java.security.cert.X509Certificate getEntityCertificate()
Credential.getPublicKey().getEntityCertificate in interface X509Credentialpublic void setEntityCertificate(@Nonnull
java.security.cert.X509Certificate newEntityCertificate)
newEntityCertificate - entity certificate for this credential@Nonnull public java.security.PublicKey getPublicKey()
getPublicKey in interface CredentialgetPublicKey in class AbstractCredentialpublic void setPublicKey(java.security.PublicKey newPublicKey)
setPublicKey in interface MutableCredentialsetPublicKey in class BasicCredentialnewPublicKey - not supported@Nonnull public java.util.Collection<java.security.cert.X509Certificate> getEntityCertificateChain()
getEntityCertificateChain in interface X509Credentialpublic void setEntityCertificateChain(@Nonnull
java.util.Collection<java.security.cert.X509Certificate> newCertificateChain)
newCertificateChain - entity certificate chain for this credential@Nullable public javax.crypto.SecretKey getSecretKey()
getSecretKey in interface CredentialgetSecretKey in class AbstractCredentialpublic void setSecretKey(javax.crypto.SecretKey newSecretKey)
setSecretKey in interface MutableCredentialsetSecretKey in class BasicCredentialnewSecretKey - unsupported