Package org.bouncycastle.asn1.cms
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 Summary
ConstructorDescriptionIssuerAndSerialNumber
(org.bouncycastle.asn1.ASN1Sequence seq) Deprecated.use getInstance() method.IssuerAndSerialNumber
(org.bouncycastle.asn1.x500.X500Name name, BigInteger serialNumber) IssuerAndSerialNumber
(org.bouncycastle.asn1.x509.Certificate certificate) IssuerAndSerialNumber
(org.bouncycastle.asn1.x509.X509CertificateStructure certificate) Deprecated.use constructor taking CertificateIssuerAndSerialNumber
(org.bouncycastle.asn1.x509.X509Name name, BigInteger serialNumber) Deprecated.use X500Name constructorIssuerAndSerialNumber
(org.bouncycastle.asn1.x509.X509Name name, org.bouncycastle.asn1.ASN1Integer serialNumber) Deprecated.use X500Name constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic IssuerAndSerialNumber
getInstance
(Object obj) Return an IssuerAndSerialNumber object from the given object.org.bouncycastle.asn1.x500.X500Name
getName()
org.bouncycastle.asn1.ASN1Integer
org.bouncycastle.asn1.ASN1Primitive
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
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
-
IssuerAndSerialNumber
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
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 interfaceorg.bouncycastle.asn1.ASN1Encodable
- Specified by:
toASN1Primitive
in classorg.bouncycastle.asn1.ASN1Object
-