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 class
A template for decoding an IssuerAndSerialNumber from its BER encoding. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Name
private SEQUENCE
private INTEGER
(package private) static Tag
private static IssuerAndSerialNumber.Template
-
Constructor Summary
ConstructorsConstructorDescriptionIssuerAndSerialNumber
(Name issuer, INTEGER serialNumber) Constructs an IssuerAndSerialNumber from its components. -
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(OutputStream ostream) Write this value's DER encoding to an output stream using its own base tag.void
encode
(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:ASN1Value
Returns the base tag for this type, not counting any tags that may be imposed on it by its context. -
encode
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using its own base tag.- Specified by:
encode
in interfaceASN1Value
- Parameters:
ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
encode
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using an implicit tag.- Specified by:
encode
in interfaceASN1Value
- Parameters:
implicitTag
- Implicit tag.ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
getTemplate
Returns a singleton template instance.
-