org.eclipse.osgi.internal.provisional.verifier
Interface CertificateChain


public interface CertificateChain

This class represents a chain of certificates.

EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is no guarantee that this API will work or that it will remain the same. Please do not use this API without consulting with the equinox team.


Method Summary
 Certificate[] getCertificates()
          Retruns all certificates in this certificate chain
 String getChain()
          Returns the list of X500 distinguished names that make up the certificate chain.
 Certificate getRoot()
          Returns the root certificate of the certificate chain
 Certificate getSigner()
          Returns the first certificate of the certificate chain
 Date getSigningTime()
          Return the signing time for this signer.
 boolean isTrusted()
          Returns true if this certificate chain is trusted
 

Method Detail

getChain

String getChain()
Returns the list of X500 distinguished names that make up the certificate chain. Each distinguished name is separated by a ';'. The first distinguished name is the signer and the last is the root Certificate Authority.

Returns:
the list of X500 distinguished names that make up the certificate chain

getCertificates

Certificate[] getCertificates()
Retruns all certificates in this certificate chain

Returns:
all certificates in this certificate chain

getSigner

Certificate getSigner()
Returns the first certificate of the certificate chain

Returns:
the first certificate of the certificate chain

getRoot

Certificate getRoot()
Returns the root certificate of the certificate chain

Returns:
the foot certificate of the certificate chain

isTrusted

boolean isTrusted()
Returns true if this certificate chain is trusted

Returns:
true if this certificate chain is trusted

getSigningTime

Date getSigningTime()
Return the signing time for this signer.

Returns:
null if there is a signing time for this signer null otherwise


Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.