public class DERTaggedObject extends Object implements DEREncodable
Modifier and Type | Field and Description |
---|---|
protected boolean |
empty |
protected boolean |
explicit |
protected DEREncodable |
obj |
protected int |
tag |
Constructor and Description |
---|
DERTaggedObject(boolean explicit,
int tag,
DEREncodable obj) |
DERTaggedObject(boolean explicit,
int tag,
DEREncodable obj,
byte[] bytes) |
DERTaggedObject(int tag)
create an implicitly tagged object that contains a zero length sequence.
|
DERTaggedObject(int tag,
DEREncodable obj) |
Modifier and Type | Method and Description |
---|---|
void |
encode(ASN1OutputStream out) |
DEREncodable |
getObject()
return whatever was following the tag.
|
byte[] |
getOctets() |
int |
getTagNo() |
protected int tag
protected boolean empty
protected boolean explicit
protected DEREncodable obj
public DERTaggedObject(int tag)
public DERTaggedObject(int tag, DEREncodable obj)
tag
- the tag number for this object.obj
- the tagged object.public DERTaggedObject(boolean explicit, int tag, DEREncodable obj)
explicit
- true if an explicitly tagged object.tag
- the tag number for this object.obj
- the tagged object.public DERTaggedObject(boolean explicit, int tag, DEREncodable obj, byte[] bytes)
public byte[] getOctets()
public int getTagNo()
public DEREncodable getObject()
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.
public void encode(ASN1OutputStream out) throws IOException
encode
in interface DEREncodable
IOException
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.