|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensaml.xml.security.credential.AbstractCredential org.opensaml.xml.security.credential.BasicCredential org.opensaml.xml.security.x509.BasicX509Credential
public class BasicX509Credential
A basic implementation of X509Credential
.
Field Summary | |
---|---|
private Collection<X509CRL> |
crls
CRLs for this credential. |
private X509Certificate |
entityCert
Entity certificate. |
private Collection<X509Certificate> |
entityCertChain
Entity certificate chain, must include entity certificate. |
Fields inherited from class org.opensaml.xml.security.credential.AbstractCredential |
---|
credentialContextSet, entityID, keyNames, privateKey, publicKey, secretKey, usageType |
Constructor Summary | |
---|---|
BasicX509Credential()
|
Method Summary | |
---|---|
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 certificate for the entity. |
Collection<X509Certificate> |
getEntityCertificateChain()
Gets an immutable collection of certificates in the entity's trust chain. |
SecretKey |
getSecretKey()
Gets the secret key for this entity. |
void |
setCRLs(Collection<X509CRL> newCRLs)
Sets the CRLs for this credential. |
void |
setEntityCertificate(X509Certificate cert)
Sets the entity certificate for this credential. |
void |
setEntityCertificateChain(Collection<X509Certificate> certs)
Sets the entity certificate chain for this credential. |
void |
setPublicKey(PublicKey key)
Sets the public key for this credential. |
void |
setSecretKey(SecretKey key)
Sets the secret key for this credential. |
Methods inherited from class org.opensaml.xml.security.credential.BasicCredential |
---|
setEntityId, setPrivateKey, setUsageType |
Methods inherited from class org.opensaml.xml.security.credential.AbstractCredential |
---|
getCredentalContextSet, getEntityId, getKeyNames, getPrivateKey, getPublicKey, getUsageType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opensaml.xml.security.credential.Credential |
---|
getCredentalContextSet, getEntityId, getKeyNames, getPrivateKey, getPublicKey, getUsageType |
Field Detail |
---|
private X509Certificate entityCert
private Collection<X509Certificate> entityCertChain
private Collection<X509CRL> crls
Constructor Detail |
---|
public BasicX509Credential()
Method Detail |
---|
public Class<? extends Credential> getCredentialType()
Credential
implemented by an implementation.
getCredentialType
in interface Credential
getCredentialType
in class BasicCredential
public Collection<X509CRL> getCRLs()
getCRLs
in interface X509Credential
public void setCRLs(Collection<X509CRL> newCRLs)
newCRLs
- CRLs for this credentialpublic X509Certificate getEntityCertificate()
Credential.getPublicKey()
.
getEntityCertificate
in interface X509Credential
public void setEntityCertificate(X509Certificate cert)
cert
- entity certificate for this credentialpublic Collection<X509Certificate> getEntityCertificateChain()
getEntityCertificateChain
in interface X509Credential
public void setEntityCertificateChain(Collection<X509Certificate> certs)
certs
- ntity certificate chain for this credentialpublic void setPublicKey(PublicKey key)
setPublicKey
in class BasicCredential
key
- public key for this credentialpublic void setSecretKey(SecretKey key)
setSecretKey
in class BasicCredential
key
- secret key for this credentialpublic SecretKey getSecretKey()
getSecretKey
in interface Credential
getSecretKey
in class AbstractCredential
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |