Class IssuerAndSerialNumber

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cms.IssuerAndSerialNumber
All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

public class IssuerAndSerialNumber extends org.bouncycastle.asn1.ASN1Object
RFC 5652: IssuerAndSerialNumber object.

 IssuerAndSerialNumber ::= SEQUENCE {
     issuer Name,
     serialNumber CertificateSerialNumber
 }

 CertificateSerialNumber ::= INTEGER  -- See RFC 5280
 
  • Constructor Details

    • IssuerAndSerialNumber

      public IssuerAndSerialNumber(org.bouncycastle.asn1.ASN1Sequence seq)
      Deprecated.
      use getInstance() method.
    • IssuerAndSerialNumber

      public IssuerAndSerialNumber(org.bouncycastle.asn1.x509.Certificate certificate)
    • IssuerAndSerialNumber

      public IssuerAndSerialNumber(org.bouncycastle.asn1.x509.X509CertificateStructure certificate)
      Deprecated.
      use constructor taking Certificate
    • IssuerAndSerialNumber

      public IssuerAndSerialNumber(org.bouncycastle.asn1.x500.X500Name name, BigInteger serialNumber)
    • IssuerAndSerialNumber

      public IssuerAndSerialNumber(org.bouncycastle.asn1.x509.X509Name name, BigInteger serialNumber)
      Deprecated.
      use X500Name constructor
    • IssuerAndSerialNumber

      public IssuerAndSerialNumber(org.bouncycastle.asn1.x509.X509Name name, org.bouncycastle.asn1.ASN1Integer serialNumber)
      Deprecated.
      use X500Name constructor
  • Method Details

    • getInstance

      public static IssuerAndSerialNumber getInstance(Object obj)
      Return an IssuerAndSerialNumber object from the given object.

      Accepted inputs:

      • null → null
      • IssuerAndSerialNumber object
      • ASN1Sequence input formats with IssuerAndSerialNumber structure inside
      Parameters:
      obj - the object we want converted.
      Throws:
      IllegalArgumentException - if the object cannot be converted.
    • getName

      public org.bouncycastle.asn1.x500.X500Name getName()
    • getSerialNumber

      public org.bouncycastle.asn1.ASN1Integer getSerialNumber()
    • toASN1Primitive

      public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
      Specified by:
      toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
      Specified by:
      toASN1Primitive in class org.bouncycastle.asn1.ASN1Object