org.opensaml.xml.security.x509
Interface X509Credential

All Superinterfaces:
Credential
All Known Implementing Classes:
BasicX509Credential, KeyStoreX509CredentialAdapter, X509KeyManagerX509CredentialAdapter

public interface X509Credential
extends Credential

An entity credential based on key material and other information (e.g. certificates and certificate revocation lists) associated with X.509 Public Key Infrastructure. Note that this type of credential may not contain a symmetric (secret) key, and hence Credential.getSecretKey() should always return null.


Method Summary
 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.
 
Methods inherited from interface org.opensaml.xml.security.credential.Credential
getCredentalContextSet, getCredentialType, getEntityId, getKeyNames, getPrivateKey, getPublicKey, getSecretKey, getUsageType
 

Method Detail

getEntityCertificate

X509Certificate getEntityCertificate()
Gets the public certificate for the entity. The public key of this certificate will be the same key obtained from Credential.getPublicKey().

Returns:
the public certificate for the entity

getEntityCertificateChain

Collection<X509Certificate> getEntityCertificateChain()
Gets an immutable collection of certificates in the entity's trust chain. The entity certificate is contained within this list. No specific ordering of the certificates is guaranteed.

Returns:
entities certificate chain

getCRLs

Collection<X509CRL> getCRLs()
Gets a collection of CRLs associated with the credential.

Returns:
CRLs associated with the credential


Copyright © 1999-2013. All Rights Reserved.