Package org.mozilla.jss.pkix.cmc
Class CMCCertId
java.lang.Object
org.mozilla.jss.pkix.cmc.CMCCertId
- All Implemented Interfaces:
ASN1Value
CMC CMCCertId.
The definition of IssuerSerial comes from RFC 3281. CMCCertId ::= SEQUENCE { issuer GeneralNames, serial INTEGER issuerUID UniqueIdentifier OPTIONAL}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A Template for decoding aCMCCertId
. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SEQUENCE
private BIT_STRING
private SEQUENCE
private INTEGER
private static final Tag
private static final CMCCertId.Template
-
Constructor Summary
ConstructorsConstructorDescriptionCMCCertId
(ANY issuer, INTEGER serial, BIT_STRING issuerUID) Constructs a newCMCCertId
from its components.CMCCertId
(SEQUENCE issuer, INTEGER serial, BIT_STRING issuerUID) Constructs a newCMCCertId
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.Returns theissuer
field as anSEQUENCE of ANY
.Returns theissuerUID
field.Returns theserial
field.getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static CMCCertId.Template
-
Field Details
-
issuer
-
serial
-
issuerUID
-
sequence
-
TAG
-
templateInstance
-
-
Constructor Details
-
CMCCertId
Constructs a newCMCCertId
from its components. The uniqueIdentifier component may benull
. -
CMCCertId
Constructs a newCMCCertId
from its components. The issuerUID component may benull
.
-
-
Method Details
-
getIssuer
Returns theissuer
field as anSEQUENCE of ANY
. The actual type of the field is GeneralNames. -
getSerial
Returns theserial
field. -
getIssuerUID
Returns theissuerUID
field. -
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
-