org.eclipse.osgi.internal.signedcontent
Class SignerInfoImpl

java.lang.Object
  extended by org.eclipse.osgi.internal.signedcontent.SignerInfoImpl
All Implemented Interfaces:
SignerInfo

public class SignerInfoImpl
extends java.lang.Object
implements SignerInfo


Constructor Summary
SignerInfoImpl(java.security.cert.Certificate[] chain, java.security.cert.Certificate trustAnchor, java.lang.String mdAlgorithm)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.security.cert.Certificate[] getCertificateChain()
          Returns the certificate chain
 java.lang.String getMessageDigestAlgorithm()
          Returns the MessageDigest algorithm used to verify content signed by this signer info.
 java.security.cert.Certificate getTrustAnchor()
          Returns the certificate trust anchor used to establish authenticity.
 int hashCode()
           
 boolean isTrusted()
          Returns true if the trust anchor has been authenticated.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignerInfoImpl

public SignerInfoImpl(java.security.cert.Certificate[] chain,
                      java.security.cert.Certificate trustAnchor,
                      java.lang.String mdAlgorithm)
Method Detail

getCertificateChain

public java.security.cert.Certificate[] getCertificateChain()
Description copied from interface: SignerInfo
Returns the certificate chain

Specified by:
getCertificateChain in interface SignerInfo
Returns:
the certificate chain

getTrustAnchor

public java.security.cert.Certificate getTrustAnchor()
Description copied from interface: SignerInfo
Returns the certificate trust anchor used to establish authenticity. If authenticity cannot be established then null is returned.

Specified by:
getTrustAnchor in interface SignerInfo
Returns:
the trust anchor

isTrusted

public boolean isTrusted()
Description copied from interface: SignerInfo
Returns true if the trust anchor has been authenticated. This is a convenience method equivalent to calling SignerInfo.getTrustAnchor() != null

Specified by:
isTrusted in interface SignerInfo
Returns:
true if the the signer info is trusted

getMessageDigestAlgorithm

public java.lang.String getMessageDigestAlgorithm()
Description copied from interface: SignerInfo
Returns the MessageDigest algorithm used to verify content signed by this signer info.

Specified by:
getMessageDigestAlgorithm in interface SignerInfo
Returns:
the algorithm

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2007-2012 FuseSource, Corp.. All Rights Reserved.