public class EntrustProofOfRAInfo extends java.lang.Object implements ASN1Type
EntrustProofOfRAInfo, as defined by Entrust.
EntrustProofOfRAInfo ::= SEQUENCE {
raName GeneralName, -- the DN of the RA (as known by SM)
raKid KeyIdentifier, -- key id of key used to sign this
hashAlg AlgorithmIdentifier, -- hash algorithm for bodyHash and headerHash
headerHash OCTET STRING, -- hash of PKIHeader containing all fields
-- except the EntrustProofOfRA attribute
bodyHash OCTET STRING -- hash of PKIBody in PKIMessage
};
| Constructor and Description |
|---|
EntrustProofOfRAInfo(ASN1Object obj)
Creates a new
EntrustProofOfRAInfo from an
ASN1Object. |
EntrustProofOfRAInfo(X509Certificate raVerificationCert,
AlgorithmID hashAlg,
PKIHeader header,
PKIBody body)
Creates a new
EntrustProofOfRAInfo. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes an
EntrustProofOfRAInfo |
byte[] |
getBodyHash()
Returns the hash of the
PKIBody. |
AlgorithmID |
getHashAlg()
Returns the hash algorithm used during the creation of
headerHash and bodyHash. |
byte[] |
getHeaderHash()
Returns the hash of the
PKIHeader containing all fields except
the EntrustProofOfRA attribute. |
byte[] |
getRaKid()
Returns the identifier of the key that will be used to sign this
EntrustProofOfRAInfo. |
GeneralName |
getRaName()
Returns the DN of the RA (as known by the Security Manager).
|
ASN1Object |
toASN1Object()
Encodes this
EntrustProofOfRAInfo object as an
ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
EntrustProofOfRAInfo object. |
public EntrustProofOfRAInfo(X509Certificate raVerificationCert, AlgorithmID hashAlg, PKIHeader header, PKIBody body) throws java.security.NoSuchAlgorithmException
EntrustProofOfRAInfo.raVerificationCert - the verification certificate of the RA; must match the signing key that
will be used to sign this structurehashAlg - the hash algorithm used during the hashing of header
and bodyheader - the PKIHeader of the message that this
EntrustProofOfRAInfo will appear in; must not contain the
EntrustProofOfRA attributebody - the PKIBody of the message that this
EntrustProofOfRAInfo will appear injava.security.NoSuchAlgorithmException - if an implementation of the specified hash algorithm is not available
through the JCAjava.lang.IllegalArgumentException - if any of the parameters are null or the RA verification
certificate does not contain a properly formatted
SubjectKeyIdentifier extensionpublic EntrustProofOfRAInfo(ASN1Object obj) throws CodingException
EntrustProofOfRAInfo from an
ASN1Object. The ASN1Object must be an
EntrustProofOfRAInfo structure.obj - the ASN.1 representation of an EntrustProofOfRAInfo
structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic GeneralName getRaName()
public byte[] getRaKid()
EntrustProofOfRAInfo.public AlgorithmID getHashAlg()
headerHash and bodyHash.public byte[] getHeaderHash()
PKIHeader containing all fields except
the EntrustProofOfRA attribute.PKIHeaderpublic byte[] getBodyHash()
PKIBody.PKIBodypublic void decode(ASN1Object obj) throws CodingException
EntrustProofOfRAInfo object from an
ASN1Object. The ASN1Object must ba an
EntrustProofOfRAInfo structure.decode in interface ASN1Typeobj - an ASN.1 representation of an EntrustProofOfRAInfo
structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
EntrustProofOfRAInfo object as an
ASN1Object.toASN1Object in interface ASN1Typepublic java.lang.String toString()
EntrustProofOfRAInfo object.toString in class java.lang.Object