public class ContextType extends AbstractDERType implements DEREncoder
| Modifier and Type | Field and Description | 
|---|---|
private byte[] | 
derItem
Data to encode. 
 | 
| Constructor and Description | 
|---|
ContextType(int index,
           BigInteger item)
Creates a new context type. 
 | 
ContextType(int index,
           boolean item)
Creates a new context type. 
 | 
ContextType(int index,
           byte[] item)
Creates a new context type. 
 | 
ContextType(int index,
           String item)
Creates a new context type. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
byte[] | 
encode()
Encode this object into it's DER type. 
 | 
encode, readBufferpublic ContextType(int index,
                   byte[] item)
index - of this item in the contextitem - to encodepublic ContextType(int index,
                   String item)
index - of this item in the contextitem - to encodepublic ContextType(int index,
                   boolean item)
index - of this item in the contextitem - to encodepublic ContextType(int index,
                   BigInteger item)
index - of this item in the contextitem - to encodepublic byte[] encode()
DEREncoderencode in interface DEREncoderCopyright © 2003-2019 Virginia Tech. All Rights Reserved.