Class BodyPartReference
java.lang.Object
org.mozilla.jss.pkix.cmc.BodyPartReference
- All Implemented Interfaces:
ASN1Value
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA Template for decoding a BodyPartReference.static classThe type of BodyPartReference. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final INTEGERprivate INTEGERstatic BodyPartReference.Typeprivate SEQUENCEstatic BodyPartReference.Typeprivate static final BodyPartReference.Templateprivate BodyPartReference.Type//////////////////////////////////////////////////////////////////// -
Constructor Summary
ConstructorsConstructorDescriptionBodyPartReference(BodyPartReference.Type type, INTEGER bodyPartID, SEQUENCE bodyPartPath) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBodyPartId(int id) Adds a BodyPartID to the bodyPartPath SEQUENCE.voidencode(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()////////////////////////////////////////////////////////////////////static BodyPartReference.TemplategetType()Returns the type of BodyPartReference:BodyPartIDBodyPartPath
-
Field Details
-
BODYIDMAX
-
BodyPartID
-
BodyPartPath
-
type
//////////////////////////////////////////////////////////////////// -
bodyPartID
-
bodyPartPath
-
templateInstance
-
-
Constructor Details
-
BodyPartReference
- Parameters:
type- The type of the BodyPartReferencebodyPartID- A BodyPartID.bodyPartPath- The sequence of bodyPartIDs.
-
-
Method Details
-
addBodyPartId
public void addBodyPartId(int id) Adds a BodyPartID to the bodyPartPath SEQUENCE. -
getType
Returns the type of BodyPartReference:BodyPartIDBodyPartPath
-
getBodyPartID
-
getBodyPartPath
-
getTag
-
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
-