Package org.mozilla.jss.pkix.cmc
Class BodyPartReference
- java.lang.Object
-
- org.mozilla.jss.pkix.cmc.BodyPartReference
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BodyPartReference.Template
A Template for decoding a BodyPartReference.static class
BodyPartReference.Type
The type of BodyPartReference.
-
Field Summary
Fields Modifier and Type Field Description static INTEGER
BODYIDMAX
static BodyPartReference.Type
BodyPartID
static BodyPartReference.Type
BodyPartPath
-
Constructor Summary
Constructors Constructor Description BodyPartReference(BodyPartReference.Type type, INTEGER bodyPartID, SEQUENCE bodyPartPath)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBodyPartId(int id)
Adds a BodyPartID to the bodyPartPath SEQUENCE.void
encode(java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using its own base tag.void
encode(Tag implicitTag, java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using an implicit tag.INTEGER
getBodyPartID()
SEQUENCE
getBodyPartPath()
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
getTemplate()
BodyPartReference.Type
getType()
Returns the type of BodyPartReference:BodyPartID
BodyPartPath
-
-
-
Field Detail
-
BODYIDMAX
public static final INTEGER BODYIDMAX
-
BodyPartID
public static BodyPartReference.Type BodyPartID
-
BodyPartPath
public static BodyPartReference.Type BodyPartPath
-
-
Constructor Detail
-
BodyPartReference
public BodyPartReference(BodyPartReference.Type type, INTEGER bodyPartID, SEQUENCE bodyPartPath)
- Parameters:
type
- The type of the BodyPartReferencebodyPartID
- A BodyPartID.bodyPartPath
- The sequence of bodyPartIDs.
-
-
Method Detail
-
addBodyPartId
public void addBodyPartId(int id)
Adds a BodyPartID to the bodyPartPath SEQUENCE.
-
getType
public BodyPartReference.Type getType()
Returns the type of BodyPartReference:BodyPartID
BodyPartPath
-
getBodyPartID
public INTEGER getBodyPartID()
-
getBodyPartPath
public SEQUENCE getBodyPartPath()
-
getTag
public Tag 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
public void encode(java.io.OutputStream ostream) throws java.io.IOException
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using its own base tag.
-
encode
public void encode(Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using an implicit tag.
-
getTemplate
public static BodyPartReference.Template getTemplate()
-
-