Top Fields Constructors Methods
org.bouncycastle.asn1.ess

public Class OtherCertID

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1Encodable, .ASN1EncodableVector, .ASN1Object, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .DERSequence, org.bouncycastle.asn1.oiw.OIWObjectIdentifiers, org.bouncycastle.asn1.x509.AlgorithmIdentifier, .DigestInfo, .IssuerSerial

Field Summary

Modifier and TypeField and Description
private IssuerSerial
private ASN1Encodable

Constructor Summary

AccessConstructor and Description
private
OtherCertID(ASN1Sequence seq)

constructor

public
OtherCertID(AlgorithmIdentifier algId, byte[] digest)

public
OtherCertID(AlgorithmIdentifier algId, byte[] digest, IssuerSerial issuerSerial)

Method Summary

Modifier and TypeMethod and Description
public AlgorithmIdentifier
public byte[]
public static OtherCertID
public IssuerSerial
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

OtherCertID ::= SEQUENCE {
    otherCertHash    OtherHash,
    issuerSerial     IssuerSerial OPTIONAL }

OtherHash ::= CHOICE {
    sha1Hash     OCTET STRING,
    otherHash    OtherHashAlgAndValue }

OtherHashAlgAndValue ::= SEQUENCE {
    hashAlgorithm    AlgorithmIdentifier,
    hashValue        OCTET STRING }

Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

issuerSerialback to summary
private IssuerSerial issuerSerial
otherCertHashback to summary
private ASN1Encodable otherCertHash

Constructor Detail

OtherCertIDback to summary
private OtherCertID(ASN1Sequence seq)

constructor

OtherCertIDback to summary
public OtherCertID(AlgorithmIdentifier algId, byte[] digest)
OtherCertIDback to summary
public OtherCertID(AlgorithmIdentifier algId, byte[] digest, IssuerSerial issuerSerial)

Method Detail

getAlgorithmHashback to summary
public AlgorithmIdentifier getAlgorithmHash()
getCertHashback to summary
public byte[] getCertHash()
getInstanceback to summary
public static OtherCertID getInstance(Object o)
getIssuerSerialback to summary
public IssuerSerial getIssuerSerial()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

OtherCertID ::= SEQUENCE {
    otherCertHash    OtherHash,
    issuerSerial     IssuerSerial OPTIONAL }

OtherHash ::= CHOICE {
    sha1Hash     OCTET STRING,
    otherHash    OtherHashAlgAndValue }

OtherHashAlgAndValue ::= SEQUENCE {
    hashAlgorithm    AlgorithmIdentifier,
    hashValue        OCTET STRING }

Returns:ASN1Primitive

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

a primitive representation of this object.