Package org.mozilla.jss.pkix.cmc
Class BodyPartReference
java.lang.Object
org.mozilla.jss.pkix.cmc.BodyPartReference
- All Implemented Interfaces:
ASN1Value
CMC BodyPartReference:
BodyPartReference::= CHOICE {
bodyPartID BodyPartID
bodyPartPath SEQUENCE SIZE (1..MAX) OF BodyPartID,
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A Template for decoding a BodyPartReference.static class
The type of BodyPartReference. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final INTEGER
private INTEGER
static BodyPartReference.Type
private SEQUENCE
static BodyPartReference.Type
private static final BodyPartReference.Template
private BodyPartReference.Type
-
Constructor Summary
ConstructorsConstructorDescriptionBodyPartReference
(BodyPartReference.Type type, INTEGER bodyPartID, SEQUENCE bodyPartPath) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBodyPartId
(int id) Adds a BodyPartID to the bodyPartPath SEQUENCE.void
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.static BodyPartReference.Template
getType()
Returns the type of BodyPartReference:BodyPartID
BodyPartPath
-
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:BodyPartID
BodyPartPath
-
getBodyPartID
-
getBodyPartPath
-
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
-