org.opends.server.protocols.asn1
Class ASN1Constants

java.lang.Object
  extended by org.opends.server.protocols.asn1.ASN1Constants

@PublicAPI(stability=UNCOMMITTED,
           mayInstantiate=false,
           mayExtend=false,
           mayInvoke=true)
public final class ASN1Constants
extends java.lang.Object

This class defines a number of constants that may be used when interacting with ASN.1 elements.


Field Summary
static byte[] BOOLEAN_VALUE_FALSE
          The byte array containing the pre-encoded ASN.1 encoding for a boolean value of "false".
static byte[] BOOLEAN_VALUE_TRUE
          The byte array containing the pre-encoded ASN.1 encoding for a boolean value of "false".
static byte[] NO_VALUE
          The byte array that will be used for ASN.1 elements with no value.
static byte TYPE_MASK_ALL_BUT_CLASS
          The bitmask that can be ANDed with the BER type to zero out all bits except those used in the class.
static byte TYPE_MASK_ALL_BUT_PC
          The bitmask that can be ANDed with the BER type to zero out all bits except the primitive/constructed bit.
static byte TYPE_MASK_APPLICATION
          The bitmask that can be ANDed with the BER type to determine if the element is in the application-specific class.
static byte TYPE_MASK_CONSTRUCTED
          The bitmask that can be ANDed with the BER type to determine if the element is constructed.
static byte TYPE_MASK_CONTEXT
          The bitmask that can be ANDed with the BER type to determine if the element is in the context-specific class.
static byte TYPE_MASK_PRIMITIVE
          The bitmask that can be ANDed with the BER type to determine if the element is a primitive.
static byte TYPE_MASK_PRIVATE
          The bitmask that can be ANDed with the BER type to determine if the element is in the private class.
static byte TYPE_MASK_UNIVERSAL
          The bitmask that can be ANDed with the BER type to determine if the element is in the universal class.
static byte UNIVERSAL_BOOLEAN_TYPE
          The BER type that is assigned to the universal Boolean element.
static byte UNIVERSAL_ENUMERATED_TYPE
          The BER type that is assigned to the universal enumerated type.
static byte UNIVERSAL_INTEGER_TYPE
          The BER type that is assigned to the universal integer type.
static byte UNIVERSAL_NULL_TYPE
          The BER type that is assigned to the universal null type.
static byte UNIVERSAL_OCTET_STRING_TYPE
          The BER type that is assigned to the universal octet string type.
static byte UNIVERSAL_SEQUENCE_TYPE
          The BER type that is assigned to the universal sequence type.
static byte UNIVERSAL_SET_TYPE
          The BER type that is assigned to the universal set type.
 
Constructor Summary
ASN1Constants()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNIVERSAL_BOOLEAN_TYPE

public static final byte UNIVERSAL_BOOLEAN_TYPE
The BER type that is assigned to the universal Boolean element.

See Also:
Constant Field Values

UNIVERSAL_INTEGER_TYPE

public static final byte UNIVERSAL_INTEGER_TYPE
The BER type that is assigned to the universal integer type.

See Also:
Constant Field Values

UNIVERSAL_OCTET_STRING_TYPE

public static final byte UNIVERSAL_OCTET_STRING_TYPE
The BER type that is assigned to the universal octet string type.

See Also:
Constant Field Values

UNIVERSAL_NULL_TYPE

public static final byte UNIVERSAL_NULL_TYPE
The BER type that is assigned to the universal null type.

See Also:
Constant Field Values

UNIVERSAL_ENUMERATED_TYPE

public static final byte UNIVERSAL_ENUMERATED_TYPE
The BER type that is assigned to the universal enumerated type.

See Also:
Constant Field Values

UNIVERSAL_SEQUENCE_TYPE

public static final byte UNIVERSAL_SEQUENCE_TYPE
The BER type that is assigned to the universal sequence type.

See Also:
Constant Field Values

UNIVERSAL_SET_TYPE

public static final byte UNIVERSAL_SET_TYPE
The BER type that is assigned to the universal set type.

See Also:
Constant Field Values

NO_VALUE

public static final byte[] NO_VALUE
The byte array that will be used for ASN.1 elements with no value.


TYPE_MASK_ALL_BUT_CLASS

public static final byte TYPE_MASK_ALL_BUT_CLASS
The bitmask that can be ANDed with the BER type to zero out all bits except those used in the class.

See Also:
Constant Field Values

TYPE_MASK_UNIVERSAL

public static final byte TYPE_MASK_UNIVERSAL
The bitmask that can be ANDed with the BER type to determine if the element is in the universal class.

See Also:
Constant Field Values

TYPE_MASK_APPLICATION

public static final byte TYPE_MASK_APPLICATION
The bitmask that can be ANDed with the BER type to determine if the element is in the application-specific class.

See Also:
Constant Field Values

TYPE_MASK_CONTEXT

public static final byte TYPE_MASK_CONTEXT
The bitmask that can be ANDed with the BER type to determine if the element is in the context-specific class.

See Also:
Constant Field Values

TYPE_MASK_PRIVATE

public static final byte TYPE_MASK_PRIVATE
The bitmask that can be ANDed with the BER type to determine if the element is in the private class.

See Also:
Constant Field Values

TYPE_MASK_ALL_BUT_PC

public static final byte TYPE_MASK_ALL_BUT_PC
The bitmask that can be ANDed with the BER type to zero out all bits except the primitive/constructed bit.

See Also:
Constant Field Values

TYPE_MASK_PRIMITIVE

public static final byte TYPE_MASK_PRIMITIVE
The bitmask that can be ANDed with the BER type to determine if the element is a primitive.

See Also:
Constant Field Values

TYPE_MASK_CONSTRUCTED

public static final byte TYPE_MASK_CONSTRUCTED
The bitmask that can be ANDed with the BER type to determine if the element is constructed.

See Also:
Constant Field Values

BOOLEAN_VALUE_FALSE

public static final byte[] BOOLEAN_VALUE_FALSE
The byte array containing the pre-encoded ASN.1 encoding for a boolean value of "false".


BOOLEAN_VALUE_TRUE

public static final byte[] BOOLEAN_VALUE_TRUE
The byte array containing the pre-encoded ASN.1 encoding for a boolean value of "false".

Constructor Detail

ASN1Constants

public ASN1Constants()