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 classBodyPartReference.TemplateA Template for decoding a BodyPartReference.static classBodyPartReference.TypeThe type of BodyPartReference.
-
Field Summary
Fields Modifier and Type Field Description static INTEGERBODYIDMAXstatic BodyPartReference.TypeBodyPartIDstatic BodyPartReference.TypeBodyPartPath
-
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 voidaddBodyPartId(int id)Adds a BodyPartID to the bodyPartPath SEQUENCE.voidencode(java.io.OutputStream ostream)Write this value's DER encoding to an output stream using its own base tag.voidencode(Tag implicitTag, java.io.OutputStream ostream)Write this value's DER encoding to an output stream using an implicit tag.INTEGERgetBodyPartID()SEQUENCEgetBodyPartPath()TaggetTag()Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static BodyPartReference.TemplategetTemplate()BodyPartReference.TypegetType()Returns the type of BodyPartReference:BodyPartIDBodyPartPath
-
-
-
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:BodyPartIDBodyPartPath
-
getBodyPartID
public INTEGER getBodyPartID()
-
getBodyPartPath
public SEQUENCE getBodyPartPath()
-
getTag
public Tag getTag()
Description copied from interface:ASN1ValueReturns 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.IOExceptionDescription copied from interface:ASN1ValueWrite 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:ASN1ValueWrite this value's DER encoding to an output stream using an implicit tag.
-
getTemplate
public static BodyPartReference.Template getTemplate()
-
-