org.nhindirect.stagent.cert
Class Thumbprint

java.lang.Object
  extended by org.nhindirect.stagent.cert.Thumbprint

public class Thumbprint
extends java.lang.Object

An X509Certificate thumb print. Thumb print is essentially a SHA-1 digest of the certificates der encoding.

Author:
Greg Meyer

Method Summary
 boolean equals(java.lang.Object obj)
           
 byte[] getDigest()
          Gets the raw byte digest of the certificate's der encoding.
 java.lang.String toString()
           
static Thumbprint toThumbprint(java.security.cert.X509Certificate cert)
          Creates a thumbprint of an X509Certificate.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toThumbprint

public static Thumbprint toThumbprint(java.security.cert.X509Certificate cert)
Creates a thumbprint of an X509Certificate.

Parameters:
cert - The certificate to convert.
Returns:
A thumbprint of the certificate.

getDigest

public byte[] getDigest()
Gets the raw byte digest of the certificate's der encoding.

Returns:
The certificates digest.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

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


Copyright © 2010-2011 HNIN Direct. All Rights Reserved.