|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.slamd.asn1.ASN1Element
com.sun.slamd.asn1.ASN1Null
public class ASN1Null
This class defines an ASN.1 element that does not hold any value. It is generally used as a placeholder in cases where there needs to be an element to complete the encoding but there is no appropriate value to use in that case.
| Field Summary | |
|---|---|
static ASN1Null |
NULL_ELEMENT
A static version of a NULL element that can be used to prevent the need to create new instances whenever a null is needed with the default type. |
| Fields inherited from class com.sun.slamd.asn1.ASN1Element |
|---|
ASN1_BOOLEAN_TYPE, ASN1_ENUMERATED_TYPE, ASN1_INTEGER_TYPE, ASN1_NULL_TYPE, ASN1_OCTET_STRING_TYPE, ASN1_SEQUENCE_TYPE, ASN1_SET_TYPE, EMPTY_BYTES |
| Constructor Summary | |
|---|---|
ASN1Null()
Creates a new ASN.1 null element. |
|
ASN1Null(byte type)
Creates a new ASN.1 null element with the specified type. |
|
| Method Summary | |
|---|---|
static ASN1Null |
decodeAsNull(byte[] encodedValue)
Decodes the provided byte array as an ASN.1 null element. |
byte[] |
encode()
Encodes this ASN.1 element into a byte array. |
| Methods inherited from class com.sun.slamd.asn1.ASN1Element |
|---|
byteArrayToInt, byteArrayToString, byteArrayToString, byteArrayToStringWithASCII, byteArrayToStringWithASCII, decode, decodeAsBoolean, decodeAsBoolean, decodeAsEnumerated, decodeAsEnumerated, decodeAsInteger, decodeAsInteger, decodeAsNull, decodeAsOctetString, decodeAsOctetString, decodeAsSequence, decodeAsSequence, decodeAsSet, decodeAsSet, decodeLength, encode, encodeLength, getBytes, getType, getTypeWithoutFlags, getValue, setType, setValue, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ASN1Null NULL_ELEMENT
| Constructor Detail |
|---|
public ASN1Null()
public ASN1Null(byte type)
type - The BER type to assign to this ASN.1 element.| Method Detail |
|---|
public byte[] encode()
encode in class ASN1Element
public static ASN1Null decodeAsNull(byte[] encodedValue)
throws ASN1Exception
encodedValue - The encoded ASN.1 element.
ASN1Exception - If the provided byte array cannot be decoded as an
ASN.1 null element.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||