Class OtherCertID

  • All Implemented Interfaces:
    org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

    public class OtherCertID
    extends org.bouncycastle.asn1.ASN1Object
    • Constructor Summary

      Constructors 
      Constructor Description
      OtherCertID​(org.bouncycastle.asn1.x509.AlgorithmIdentifier algId, byte[] digest)  
      OtherCertID​(org.bouncycastle.asn1.x509.AlgorithmIdentifier algId, byte[] digest, org.bouncycastle.asn1.x509.IssuerSerial issuerSerial)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmHash()  
      byte[] getCertHash()  
      static OtherCertID getInstance​(java.lang.Object o)  
      org.bouncycastle.asn1.x509.IssuerSerial getIssuerSerial()  
      org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
      OtherCertID ::= SEQUENCE { otherCertHash OtherHash, issuerSerial IssuerSerial OPTIONAL } OtherHash ::= CHOICE { sha1Hash OCTET STRING, otherHash OtherHashAlgAndValue } OtherHashAlgAndValue ::= SEQUENCE { hashAlgorithm AlgorithmIdentifier, hashValue OCTET STRING }
      • Methods inherited from class org.bouncycastle.asn1.ASN1Object

        encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OtherCertID

        public OtherCertID​(org.bouncycastle.asn1.x509.AlgorithmIdentifier algId,
                           byte[] digest)
      • OtherCertID

        public OtherCertID​(org.bouncycastle.asn1.x509.AlgorithmIdentifier algId,
                           byte[] digest,
                           org.bouncycastle.asn1.x509.IssuerSerial issuerSerial)
    • Method Detail

      • getInstance

        public static OtherCertID getInstance​(java.lang.Object o)
      • getAlgorithmHash

        public org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmHash()
      • getCertHash

        public byte[] getCertHash()
      • getIssuerSerial

        public org.bouncycastle.asn1.x509.IssuerSerial getIssuerSerial()
      • toASN1Primitive

        public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
         OtherCertID ::= SEQUENCE {
             otherCertHash    OtherHash,
             issuerSerial     IssuerSerial OPTIONAL }
        
         OtherHash ::= CHOICE {
             sha1Hash     OCTET STRING,
             otherHash    OtherHashAlgAndValue }
        
         OtherHashAlgAndValue ::= SEQUENCE {
             hashAlgorithm    AlgorithmIdentifier,
             hashValue        OCTET STRING }
        
         
        Specified by:
        toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
        Specified by:
        toASN1Primitive in class org.bouncycastle.asn1.ASN1Object