org.apache.directory.shared.asn1.der
Class DERTaggedObject
java.lang.Object
org.apache.directory.shared.asn1.der.DERTaggedObject
- All Implemented Interfaces:
- DEREncodable
- Direct Known Subclasses:
- BERTaggedObject
- public class DERTaggedObject
- extends java.lang.Object
- implements DEREncodable
DER TaggedObject
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tag
protected int tag
empty
protected boolean empty
explicit
protected boolean explicit
obj
protected DEREncodable obj
DERTaggedObject
public DERTaggedObject(int tag)
- create an implicitly tagged object that contains a zero length sequence.
DERTaggedObject
public DERTaggedObject(int tag,
DEREncodable obj)
- Parameters:
tag
- the tag number for this object.obj
- the tagged object.
DERTaggedObject
public DERTaggedObject(boolean explicit,
int tag,
DEREncodable obj)
- Parameters:
explicit
- true if an explicitly tagged object.tag
- the tag number for this object.obj
- the tagged object.
DERTaggedObject
public DERTaggedObject(boolean explicit,
int tag,
DEREncodable obj,
byte[] bytes)
getOctets
public byte[] getOctets()
getTagNo
public int getTagNo()
getObject
public DEREncodable getObject()
- return whatever was following the tag.
Note: tagged objects are generally context dependent if you're trying to
extract a tagged object you should be going via the appropriate
getInstance method.
encode
public void encode(ASN1OutputStream out)
throws java.io.IOException
- Specified by:
encode
in interface DEREncodable
- Throws:
java.io.IOException
Copyright © 2004-2008 null. All Rights Reserved.