public class ContextType extends AbstractDERType implements DEREncoder
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, readBuffer
public 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()
DEREncoder
encode
in interface DEREncoder
Copyright © 2024. All rights reserved.