Package org.mozilla.jss.pkix.cms
Class IssuerAndSerialNumber
java.lang.Object
org.mozilla.jss.pkix.cms.IssuerAndSerialNumber
- All Implemented Interfaces:
ASN1Value
An issuer name and serial number, used to uniquely identify a certificate.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA template for decoding an IssuerAndSerialNumber from its BER encoding. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Nameprivate SEQUENCEprivate INTEGER(package private) static Tagprivate static IssuerAndSerialNumber.Template -
Constructor Summary
ConstructorsConstructorDescriptionIssuerAndSerialNumber(Name issuer, INTEGER serialNumber) Constructs an IssuerAndSerialNumber from its components. -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(OutputStream ostream) Write this value's DER encoding to an output stream using its own base tag.voidencode(Tag implicitTag, OutputStream ostream) Write this value's DER encoding to an output stream using an implicit tag.getTag()Returns the base tag for this type, not counting any tags that may be imposed on it by its context.Returns a singleton template instance.
-
Field Details
-
issuer
-
serialNumber
-
sequence
-
TAG
-
templateInstance
-
-
Constructor Details
-
IssuerAndSerialNumber
Constructs an IssuerAndSerialNumber from its components.- Parameters:
issuer- Must not be null.serialNumber- must not be null.
-
-
Method Details
-
getIssuer
-
getSerialNumber
-
getTag
Description copied from interface:ASN1ValueReturns the base tag for this type, not counting any tags that may be imposed on it by its context. -
encode
Description copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using its own base tag.- Specified by:
encodein interfaceASN1Value- Parameters:
ostream- Output stream.- Throws:
IOException- If an error occurred.
-
encode
Description copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using an implicit tag.- Specified by:
encodein interfaceASN1Value- Parameters:
implicitTag- Implicit tag.ostream- Output stream.- Throws:
IOException- If an error occurred.
-
getTemplate
Returns a singleton template instance.
-