|
DigiStamp.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdgs.tlkt.ESSCertID
The data structure used to identify a specific x.509 certificate. Defined in IETF RFC 2634 Enhanced Security Services for S/MIME
ESSCertID ::= SEQUENCE {
certHash Hash,
issuerSerial IssuerSerial OPTIONAL
}
Hash ::= OCTET STRING -- SHA1 hash of entire certificate
IssuerSerial ::= SEQUENCE {
issuer GeneralNames,
serialNumber CertificateSerialNumber
}
| Constructor Summary | |
ESSCertID(byte[] certHash,
byte[] issuerNameEncoded,
java.math.BigInteger serialNumber)
|
|
ESSCertID(java.security.cert.X509Certificate aCert)
Given a certificate return its essCertID identifier. |
|
| Method Summary | |
static java.lang.String |
calcAnID(byte[] certHash)
A convenience method to create an identifier that corresponds to the method |
static java.lang.String |
calcAnID(java.security.cert.X509Certificate aCert)
A convenience method to create an identifier that corresponds to the method |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
java.lang.String |
getAsID()
Compress this structure into an arbritrary ID. |
byte[] |
getCertHash()
Return the ESSCertID.certHash |
byte[] |
getIssuerNameEncoded()
Return the DER encoded value of the issuer name in field: ESSCertID.issuerSerial.issuer |
java.math.BigInteger |
getSerialNumber()
Return the ESSCertID.issuerSerial.serialNumber |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ESSCertID(byte[] certHash,
byte[] issuerNameEncoded,
java.math.BigInteger serialNumber)
throws ExceptionDgsInvalidState
certHash - -
SHA1 hash of encoded certificateissuerNameEncoded - -
issuer name encodedserialNumber -
ExceptionDgsInvalidState
public ESSCertID(java.security.cert.X509Certificate aCert)
throws java.io.IOException,
java.security.cert.CertificateEncodingException
| Method Detail |
public static java.lang.String calcAnID(byte[] certHash)
certHash - -
hash value of the x.509 certificategetAsID()public static java.lang.String calcAnID(java.security.cert.X509Certificate aCert)
getAsID()public boolean equals(java.lang.Object obj)
obj - the reference object with which to compare.
true if this object is the same as the obj
argument; false otherwise.public java.lang.String getAsID()
public byte[] getCertHash()
public byte[] getIssuerNameEncoded()
public java.math.BigInteger getSerialNumber()
|
Copyright 2000-2008 DigiStamp, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||