Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2007-2021 Ping Identity Corporation
* All Rights Reserved.
*/
/*
* Copyright 2007-2021 Ping Identity Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* Copyright (C) 2007-2021 Ping Identity Corporation
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License (GPLv2 only)
* or the terms of the GNU Lesser General Public License (LGPLv2.1 only)
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see .
*/
package com.unboundid.asn1;
import com.unboundid.util.InternalUseOnly;
import com.unboundid.util.NotNull;
import com.unboundid.util.ThreadSafety;
import com.unboundid.util.ThreadSafetyLevel;
/**
* This class defines a number of constants that are used in the course of
* processing ASN.1 BER elements. It is intended for internal use only and
* should not be referenced by classes outside of the LDAP SDK.
*/
@InternalUseOnly()
@ThreadSafety(level=ThreadSafetyLevel.COMPLETELY_THREADSAFE)
public final class ASN1Constants
{
/**
* Prevent this class from being instantiated.
*/
private ASN1Constants()
{
// No implementation is required.
}
/**
* A pre-allocated array of zero elements, which can be used for sequence or
* set elements that do not encapsulate any other elements.
*/
@NotNull static final ASN1Element[] NO_ELEMENTS = new ASN1Element[0];
/**
* A byte array that should be used as the default value for an ASN.1 Boolean
* element with a boolean value of "FALSE".
*/
@NotNull static final byte[] BOOLEAN_VALUE_FALSE = { (byte) 0x00 };
/**
* A byte array that should be used as the default value for an ASN.1 Boolean
* element with a boolean value of "TRUE".
*/
@NotNull static final byte[] BOOLEAN_VALUE_TRUE = { (byte) 0xFF };
/**
* The pre-encoded length array to use for a length of 0 bytes.
*/
@NotNull static final byte[] LENGTH_0 = { 0 };
/**
* The pre-encoded length array to use for a length of 1 byte.
*/
@NotNull static final byte[] LENGTH_1 = { 1 };
/**
* The pre-encoded length array to use for a length of 2 bytes.
*/
@NotNull static final byte[] LENGTH_2 = { 2 };
/**
* The pre-encoded length array to use for a length of 3 bytes.
*/
@NotNull static final byte[] LENGTH_3 = { 3 };
/**
* The pre-encoded length array to use for a length of 4 bytes.
*/
@NotNull static final byte[] LENGTH_4 = { 4 };
/**
* The pre-encoded length array to use for a length of 5 bytes.
*/
@NotNull static final byte[] LENGTH_5 = { 5 };
/**
* The pre-encoded length array to use for a length of 6 bytes.
*/
@NotNull static final byte[] LENGTH_6 = { 6 };
/**
* The pre-encoded length array to use for a length of 7 bytes.
*/
@NotNull static final byte[] LENGTH_7 = { 7 };
/**
* The pre-encoded length array to use for a length of 8 bytes.
*/
@NotNull static final byte[] LENGTH_8 = { 8 };
/**
* The pre-encoded length array to use for a length of 9 bytes.
*/
@NotNull static final byte[] LENGTH_9 = { 9 };
/**
* The pre-encoded length array to use for a length of 10 bytes.
*/
@NotNull static final byte[] LENGTH_10 = { 10 };
/**
* The pre-encoded length array to use for a length of 11 bytes.
*/
@NotNull static final byte[] LENGTH_11 = { 11 };
/**
* The pre-encoded length array to use for a length of 12 bytes.
*/
@NotNull static final byte[] LENGTH_12 = { 12 };
/**
* The pre-encoded length array to use for a length of 13 bytes.
*/
@NotNull static final byte[] LENGTH_13 = { 13 };
/**
* The pre-encoded length array to use for a length of 14 bytes.
*/
@NotNull static final byte[] LENGTH_14 = { 14 };
/**
* The pre-encoded length array to use for a length of 15 bytes.
*/
@NotNull static final byte[] LENGTH_15 = { 15 };
/**
* The pre-encoded length array to use for a length of 16 bytes.
*/
@NotNull static final byte[] LENGTH_16 = { 16 };
/**
* The pre-encoded length array to use for a length of 17 bytes.
*/
@NotNull static final byte[] LENGTH_17 = { 17 };
/**
* The pre-encoded length array to use for a length of 18 bytes.
*/
@NotNull static final byte[] LENGTH_18 = { 18 };
/**
* The pre-encoded length array to use for a length of 19 bytes.
*/
@NotNull static final byte[] LENGTH_19 = { 19 };
/**
* The pre-encoded length array to use for a length of 20 bytes.
*/
@NotNull static final byte[] LENGTH_20 = { 20 };
/**
* The pre-encoded length array to use for a length of 21 bytes.
*/
@NotNull static final byte[] LENGTH_21 = { 21 };
/**
* The pre-encoded length array to use for a length of 22 bytes.
*/
@NotNull static final byte[] LENGTH_22 = { 22 };
/**
* The pre-encoded length array to use for a length of 23 bytes.
*/
@NotNull static final byte[] LENGTH_23 = { 23 };
/**
* The pre-encoded length array to use for a length of 24 bytes.
*/
@NotNull static final byte[] LENGTH_24 = { 24 };
/**
* The pre-encoded length array to use for a length of 25 bytes.
*/
@NotNull static final byte[] LENGTH_25 = { 25 };
/**
* The pre-encoded length array to use for a length of 26 bytes.
*/
@NotNull static final byte[] LENGTH_26 = { 26 };
/**
* The pre-encoded length array to use for a length of 27 bytes.
*/
@NotNull static final byte[] LENGTH_27 = { 27 };
/**
* The pre-encoded length array to use for a length of 28 bytes.
*/
@NotNull static final byte[] LENGTH_28 = { 28 };
/**
* The pre-encoded length array to use for a length of 29 bytes.
*/
@NotNull static final byte[] LENGTH_29 = { 29 };
/**
* The pre-encoded length array to use for a length of 30 bytes.
*/
@NotNull static final byte[] LENGTH_30 = { 30 };
/**
* The pre-encoded length array to use for a length of 31 bytes.
*/
@NotNull static final byte[] LENGTH_31 = { 31 };
/**
* The pre-encoded length array to use for a length of 32 bytes.
*/
@NotNull static final byte[] LENGTH_32 = { 32 };
/**
* The pre-encoded length array to use for a length of 33 bytes.
*/
@NotNull static final byte[] LENGTH_33 = { 33 };
/**
* The pre-encoded length array to use for a length of 34 bytes.
*/
@NotNull static final byte[] LENGTH_34 = { 34 };
/**
* The pre-encoded length array to use for a length of 35 bytes.
*/
@NotNull static final byte[] LENGTH_35 = { 35 };
/**
* The pre-encoded length array to use for a length of 36 bytes.
*/
@NotNull static final byte[] LENGTH_36 = { 36 };
/**
* The pre-encoded length array to use for a length of 37 bytes.
*/
@NotNull static final byte[] LENGTH_37 = { 37 };
/**
* The pre-encoded length array to use for a length of 38 bytes.
*/
@NotNull static final byte[] LENGTH_38 = { 38 };
/**
* The pre-encoded length array to use for a length of 39 bytes.
*/
@NotNull static final byte[] LENGTH_39 = { 39 };
/**
* The pre-encoded length array to use for a length of 40 bytes.
*/
@NotNull static final byte[] LENGTH_40 = { 40 };
/**
* The pre-encoded length array to use for a length of 41 bytes.
*/
@NotNull static final byte[] LENGTH_41 = { 41 };
/**
* The pre-encoded length array to use for a length of 42 bytes.
*/
@NotNull static final byte[] LENGTH_42 = { 42 };
/**
* The pre-encoded length array to use for a length of 43 bytes.
*/
@NotNull static final byte[] LENGTH_43 = { 43 };
/**
* The pre-encoded length array to use for a length of 44 bytes.
*/
@NotNull static final byte[] LENGTH_44 = { 44 };
/**
* The pre-encoded length array to use for a length of 45 bytes.
*/
@NotNull static final byte[] LENGTH_45 = { 45 };
/**
* The pre-encoded length array to use for a length of 46 bytes.
*/
@NotNull static final byte[] LENGTH_46 = { 46 };
/**
* The pre-encoded length array to use for a length of 47 bytes.
*/
@NotNull static final byte[] LENGTH_47 = { 47 };
/**
* The pre-encoded length array to use for a length of 48 bytes.
*/
@NotNull static final byte[] LENGTH_48 = { 48 };
/**
* The pre-encoded length array to use for a length of 49 bytes.
*/
@NotNull static final byte[] LENGTH_49 = { 49 };
/**
* The pre-encoded length array to use for a length of 50 bytes.
*/
@NotNull static final byte[] LENGTH_50 = { 50 };
/**
* The pre-encoded length array to use for a length of 51 bytes.
*/
@NotNull static final byte[] LENGTH_51 = { 51 };
/**
* The pre-encoded length array to use for a length of 52 bytes.
*/
@NotNull static final byte[] LENGTH_52 = { 52 };
/**
* The pre-encoded length array to use for a length of 53 bytes.
*/
@NotNull static final byte[] LENGTH_53 = { 53 };
/**
* The pre-encoded length array to use for a length of 54 bytes.
*/
@NotNull static final byte[] LENGTH_54 = { 54 };
/**
* The pre-encoded length array to use for a length of 55 bytes.
*/
@NotNull static final byte[] LENGTH_55 = { 55 };
/**
* The pre-encoded length array to use for a length of 56 bytes.
*/
@NotNull static final byte[] LENGTH_56 = { 56 };
/**
* The pre-encoded length array to use for a length of 57 bytes.
*/
@NotNull static final byte[] LENGTH_57 = { 57 };
/**
* The pre-encoded length array to use for a length of 58 bytes.
*/
@NotNull static final byte[] LENGTH_58 = { 58 };
/**
* The pre-encoded length array to use for a length of 59 bytes.
*/
@NotNull static final byte[] LENGTH_59 = { 59 };
/**
* The pre-encoded length array to use for a length of 60 bytes.
*/
@NotNull static final byte[] LENGTH_60 = { 60 };
/**
* The pre-encoded length array to use for a length of 61 bytes.
*/
@NotNull static final byte[] LENGTH_61 = { 61 };
/**
* The pre-encoded length array to use for a length of 62 bytes.
*/
@NotNull static final byte[] LENGTH_62 = { 62 };
/**
* The pre-encoded length array to use for a length of 63 bytes.
*/
@NotNull static final byte[] LENGTH_63 = { 63 };
/**
* The pre-encoded length array to use for a length of 64 bytes.
*/
@NotNull static final byte[] LENGTH_64 = { 64 };
/**
* The pre-encoded length array to use for a length of 65 bytes.
*/
@NotNull static final byte[] LENGTH_65 = { 65 };
/**
* The pre-encoded length array to use for a length of 66 bytes.
*/
@NotNull static final byte[] LENGTH_66 = { 66 };
/**
* The pre-encoded length array to use for a length of 67 bytes.
*/
@NotNull static final byte[] LENGTH_67 = { 67 };
/**
* The pre-encoded length array to use for a length of 68 bytes.
*/
@NotNull static final byte[] LENGTH_68 = { 68 };
/**
* The pre-encoded length array to use for a length of 69 bytes.
*/
@NotNull static final byte[] LENGTH_69 = { 69 };
/**
* The pre-encoded length array to use for a length of 70 bytes.
*/
@NotNull static final byte[] LENGTH_70 = { 70 };
/**
* The pre-encoded length array to use for a length of 71 bytes.
*/
@NotNull static final byte[] LENGTH_71 = { 71 };
/**
* The pre-encoded length array to use for a length of 72 bytes.
*/
@NotNull static final byte[] LENGTH_72 = { 72 };
/**
* The pre-encoded length array to use for a length of 73 bytes.
*/
@NotNull static final byte[] LENGTH_73 = { 73 };
/**
* The pre-encoded length array to use for a length of 74 bytes.
*/
@NotNull static final byte[] LENGTH_74 = { 74 };
/**
* The pre-encoded length array to use for a length of 75 bytes.
*/
@NotNull static final byte[] LENGTH_75 = { 75 };
/**
* The pre-encoded length array to use for a length of 76 bytes.
*/
@NotNull static final byte[] LENGTH_76 = { 76 };
/**
* The pre-encoded length array to use for a length of 77 bytes.
*/
@NotNull static final byte[] LENGTH_77 = { 77 };
/**
* The pre-encoded length array to use for a length of 78 bytes.
*/
@NotNull static final byte[] LENGTH_78 = { 78 };
/**
* The pre-encoded length array to use for a length of 79 bytes.
*/
@NotNull static final byte[] LENGTH_79 = { 79 };
/**
* The pre-encoded length array to use for a length of 80 bytes.
*/
@NotNull static final byte[] LENGTH_80 = { 80 };
/**
* The pre-encoded length array to use for a length of 81 bytes.
*/
@NotNull static final byte[] LENGTH_81 = { 81 };
/**
* The pre-encoded length array to use for a length of 82 bytes.
*/
@NotNull static final byte[] LENGTH_82 = { 82 };
/**
* The pre-encoded length array to use for a length of 83 bytes.
*/
@NotNull static final byte[] LENGTH_83 = { 83 };
/**
* The pre-encoded length array to use for a length of 84 bytes.
*/
@NotNull static final byte[] LENGTH_84 = { 84 };
/**
* The pre-encoded length array to use for a length of 85 bytes.
*/
@NotNull static final byte[] LENGTH_85 = { 85 };
/**
* The pre-encoded length array to use for a length of 86 bytes.
*/
@NotNull static final byte[] LENGTH_86 = { 86 };
/**
* The pre-encoded length array to use for a length of 87 bytes.
*/
@NotNull static final byte[] LENGTH_87 = { 87 };
/**
* The pre-encoded length array to use for a length of 88 bytes.
*/
@NotNull static final byte[] LENGTH_88 = { 88 };
/**
* The pre-encoded length array to use for a length of 89 bytes.
*/
@NotNull static final byte[] LENGTH_89 = { 89 };
/**
* The pre-encoded length array to use for a length of 90 bytes.
*/
@NotNull static final byte[] LENGTH_90 = { 90 };
/**
* The pre-encoded length array to use for a length of 91 bytes.
*/
@NotNull static final byte[] LENGTH_91 = { 91 };
/**
* The pre-encoded length array to use for a length of 92 bytes.
*/
@NotNull static final byte[] LENGTH_92 = { 92 };
/**
* The pre-encoded length array to use for a length of 93 bytes.
*/
@NotNull static final byte[] LENGTH_93 = { 93 };
/**
* The pre-encoded length array to use for a length of 94 bytes.
*/
@NotNull static final byte[] LENGTH_94 = { 94 };
/**
* The pre-encoded length array to use for a length of 95 bytes.
*/
@NotNull static final byte[] LENGTH_95 = { 95 };
/**
* The pre-encoded length array to use for a length of 96 bytes.
*/
@NotNull static final byte[] LENGTH_96 = { 96 };
/**
* The pre-encoded length array to use for a length of 97 bytes.
*/
@NotNull static final byte[] LENGTH_97 = { 97 };
/**
* The pre-encoded length array to use for a length of 98 bytes.
*/
@NotNull static final byte[] LENGTH_98 = { 98 };
/**
* The pre-encoded length array to use for a length of 99 bytes.
*/
@NotNull static final byte[] LENGTH_99 = { 99 };
/**
* The pre-encoded length array to use for a length of 100 bytes.
*/
@NotNull static final byte[] LENGTH_100 = { 100 };
/**
* The pre-encoded length array to use for a length of 101 bytes.
*/
@NotNull static final byte[] LENGTH_101 = { 101 };
/**
* The pre-encoded length array to use for a length of 102 bytes.
*/
@NotNull static final byte[] LENGTH_102 = { 102 };
/**
* The pre-encoded length array to use for a length of 103 bytes.
*/
@NotNull static final byte[] LENGTH_103 = { 103 };
/**
* The pre-encoded length array to use for a length of 104 bytes.
*/
@NotNull static final byte[] LENGTH_104 = { 104 };
/**
* The pre-encoded length array to use for a length of 105 bytes.
*/
@NotNull static final byte[] LENGTH_105 = { 105 };
/**
* The pre-encoded length array to use for a length of 106 bytes.
*/
@NotNull static final byte[] LENGTH_106 = { 106 };
/**
* The pre-encoded length array to use for a length of 107 bytes.
*/
@NotNull static final byte[] LENGTH_107 = { 107 };
/**
* The pre-encoded length array to use for a length of 108 bytes.
*/
@NotNull static final byte[] LENGTH_108 = { 108 };
/**
* The pre-encoded length array to use for a length of 109 bytes.
*/
@NotNull static final byte[] LENGTH_109 = { 109 };
/**
* The pre-encoded length array to use for a length of 110 bytes.
*/
@NotNull static final byte[] LENGTH_110 = { 110 };
/**
* The pre-encoded length array to use for a length of 111 bytes.
*/
@NotNull static final byte[] LENGTH_111 = { 111 };
/**
* The pre-encoded length array to use for a length of 112 bytes.
*/
@NotNull static final byte[] LENGTH_112 = { 112 };
/**
* The pre-encoded length array to use for a length of 113 bytes.
*/
@NotNull static final byte[] LENGTH_113 = { 113 };
/**
* The pre-encoded length array to use for a length of 114 bytes.
*/
@NotNull static final byte[] LENGTH_114 = { 114 };
/**
* The pre-encoded length array to use for a length of 115 bytes.
*/
@NotNull static final byte[] LENGTH_115 = { 115 };
/**
* The pre-encoded length array to use for a length of 116 bytes.
*/
@NotNull static final byte[] LENGTH_116 = { 116 };
/**
* The pre-encoded length array to use for a length of 117 bytes.
*/
@NotNull static final byte[] LENGTH_117 = { 117 };
/**
* The pre-encoded length array to use for a length of 118 bytes.
*/
@NotNull static final byte[] LENGTH_118 = { 118 };
/**
* The pre-encoded length array to use for a length of 119 bytes.
*/
@NotNull static final byte[] LENGTH_119 = { 119 };
/**
* The pre-encoded length array to use for a length of 120 bytes.
*/
@NotNull static final byte[] LENGTH_120 = { 120 };
/**
* The pre-encoded length array to use for a length of 121 bytes.
*/
@NotNull static final byte[] LENGTH_121 = { 121 };
/**
* The pre-encoded length array to use for a length of 122 bytes.
*/
@NotNull static final byte[] LENGTH_122 = { 122 };
/**
* The pre-encoded length array to use for a length of 123 bytes.
*/
@NotNull static final byte[] LENGTH_123 = { 123 };
/**
* The pre-encoded length array to use for a length of 124 bytes.
*/
@NotNull static final byte[] LENGTH_124 = { 124 };
/**
* The pre-encoded length array to use for a length of 125 bytes.
*/
@NotNull static final byte[] LENGTH_125 = { 125 };
/**
* The pre-encoded length array to use for a length of 126 bytes.
*/
@NotNull static final byte[] LENGTH_126 = { 126 };
/**
* The pre-encoded length array to use for a length of 127 bytes.
*/
@NotNull static final byte[] LENGTH_127 = { 127 };
/**
* The BER type for the universal Boolean element.
*/
public static final byte UNIVERSAL_BOOLEAN_TYPE = 0x01;
/**
* The BER type for the universal integer element.
*/
public static final byte UNIVERSAL_INTEGER_TYPE = 0x02;
/**
* The BER type for the universal bit string element.
*/
public static final byte UNIVERSAL_BIT_STRING_TYPE = 0x03;
/**
* The BER type for the universal octet string element.
*/
public static final byte UNIVERSAL_OCTET_STRING_TYPE = 0x04;
/**
* The BER type for the universal null element.
*/
public static final byte UNIVERSAL_NULL_TYPE = 0x05;
/**
* The BER type for the universal object identifier element.
*/
public static final byte UNIVERSAL_OBJECT_IDENTIFIER_TYPE = 0x06;
/**
* The BER type for the universal enumerated element.
*/
public static final byte UNIVERSAL_ENUMERATED_TYPE = 0x0A;
/**
* The BER type for the universal UTF-8 string element.
*/
public static final byte UNIVERSAL_UTF_8_STRING_TYPE = 0x0C;
/**
* The BER type for the universal numeric string element.
*/
public static final byte UNIVERSAL_NUMERIC_STRING_TYPE = 0x12;
/**
* The BER type for the universal printable string element.
*/
public static final byte UNIVERSAL_PRINTABLE_STRING_TYPE = 0x13;
/**
* The BER type for the universal IA5 string element.
*/
public static final byte UNIVERSAL_IA5_STRING_TYPE = 0x16;
/**
* The BER type for the universal UTC time element.
*/
public static final byte UNIVERSAL_UTC_TIME_TYPE = 0x17;
/**
* The BER type for the universal generalized time element.
*/
public static final byte UNIVERSAL_GENERALIZED_TIME_TYPE = 0x18;
/**
* The BER type for the universal sequence element.
*/
public static final byte UNIVERSAL_SEQUENCE_TYPE = 0x30;
/**
* The BER type for the universal set element.
*/
public static final byte UNIVERSAL_SET_TYPE = 0x31;
/**
* A byte array that should be used as the value for an ASN.1 element if it
* does not have a value (i.e., the value length is zero bytes).
*/
@NotNull public static final byte[] NO_VALUE = new byte[0];
/**
* A mask that may be used when building a BER type in the universal class.
* To build the type, perform a bitwise OR with one of the
* {@code TYPE_MASK_*_CLASS} constants, one of the
* {@code TYPE_MASK_PC_*} constants, and a byte that represents the desired
* tag number. Note that this method only works for tag numbers between zero
* and thirty, since tag numbers greater than thirty require a multi-byte
* type, but none of the LDAP specifications attempt to use a tag number
* greater than twenty-five, so it is highly unlikely that you will ever
* encounter the need for a multi-byte type in LDAP.
*/
public static final byte TYPE_MASK_UNIVERSAL_CLASS = 0x00;
/**
* A mask that may be used when building a BER type in the universal class.
* To build the type, perform a bitwise OR with one of the
* {@code TYPE_MASK_*_CLASS} constants, one of the
* {@code TYPE_MASK_PC_*} constants, and a byte that represents the desired
* tag number. Note that this method only works for tag numbers between zero
* and thirty, since tag numbers greater than thirty require a multi-byte
* type, but none of the LDAP specifications attempt to use a tag number
* greater than twenty-five, so it is highly unlikely that you will ever
* encounter the need for a multi-byte type in LDAP.
*
* @deprecated Use {@link #TYPE_MASK_UNIVERSAL_CLASS} instead.
*/
@Deprecated()
public static final byte TYE_MASK_UNIVERSAL_CLASS = TYPE_MASK_UNIVERSAL_CLASS;
/**
* A mask that may be used when building a BER type in the application class.
* To build the type, perform a bitwise OR with one of the
* {@code TYPE_MASK_*_CLASS} constants, one of the
* {@code TYPE_MASK_PC_*} constants, and a byte that represents the desired
* tag number. Note that this method only works for tag numbers between zero
* and thirty, since tag numbers greater than thirty require a multi-byte
* type, but none of the LDAP specifications attempt to use a tag number
* greater than twenty-five, so it is highly unlikely that you will ever
* encounter the need for a multi-byte type in LDAP.
*/
public static final byte TYPE_MASK_APPLICATION_CLASS = 0x40;
/**
* A mask that may be used when building a BER type in the application class.
* To build the type, perform a bitwise OR with one of the
* {@code TYPE_MASK_*_CLASS} constants, one of the
* {@code TYPE_MASK_PC_*} constants, and a byte that represents the desired
* tag number. Note that this method only works for tag numbers between zero
* and thirty, since tag numbers greater than thirty require a multi-byte
* type, but none of the LDAP specifications attempt to use a tag number
* greater than twenty-five, so it is highly unlikely that you will ever
* encounter the need for a multi-byte type in LDAP.
*
* @deprecated Use {@link #TYPE_MASK_APPLICATION_CLASS} instead.
*/
@Deprecated()
public static final byte TYE_MASK_APPLICATION_CLASS =
TYPE_MASK_APPLICATION_CLASS;
/**
* A mask that may be used when building a BER type in the context-specific
* class. To build the type, perform a bitwise OR with one of the
* {@code TYPE_MASK_*_CLASS} constants, one of the
* {@code TYPE_MASK_PC_*} constants, and a byte that represents the desired
* tag number. Note that this method only works for tag numbers between zero
* and thirty, since tag numbers greater than thirty require a multi-byte
* type, but none of the LDAP specifications attempt to use a tag number
* greater than twenty-five, so it is highly unlikely that you will ever
* encounter the need for a multi-byte type in LDAP.
*/
public static final byte TYPE_MASK_CONTEXT_SPECIFIC_CLASS = (byte) 0x80;
/**
* A mask that may be used when building a BER type in the context-specific
* class. To build the type, perform a bitwise OR with one of the
* {@code TYPE_MASK_*_CLASS} constants, one of the
* {@code TYPE_MASK_PC_*} constants, and a byte that represents the desired
* tag number. Note that this method only works for tag numbers between zero
* and thirty, since tag numbers greater than thirty require a multi-byte
* type, but none of the LDAP specifications attempt to use a tag number
* greater than twenty-five, so it is highly unlikely that you will ever
* encounter the need for a multi-byte type in LDAP.
*
* @deprecated Use {@link #TYPE_MASK_CONTEXT_SPECIFIC_CLASS} instead.
*/
@Deprecated()
public static final byte TYE_MASK_CONTEXT_SPECIFIC_CLASS =
TYPE_MASK_CONTEXT_SPECIFIC_CLASS;
/**
* A mask that may be used when building a BER type in the private class. To
* build the type, perform a bitwise OR with one of the
* {@code TYPE_MASK_*_CLASS} constants, one of the
* {@code TYPE_MASK_PC_*} constants, and a byte that represents the desired
* tag number. Note that this method only works for tag numbers between zero
* and thirty, since tag numbers greater than thirty require a multi-byte
* type, but none of the LDAP specifications attempt to use a tag number
* greater than twenty-five, so it is highly unlikely that you will ever
* encounter the need for a multi-byte type in LDAP.
*/
public static final byte TYPE_MASK_PRIVATE_CLASS = (byte) 0xC0;
/**
* A mask that may be used when building a BER type in the private class. To
* build the type, perform a bitwise OR with one of the
* {@code TYPE_MASK_*_CLASS} constants, one of the
* {@code TYPE_MASK_PC_*} constants, and a byte that represents the desired
* tag number. Note that this method only works for tag numbers between zero
* and thirty, since tag numbers greater than thirty require a multi-byte
* type, but none of the LDAP specifications attempt to use a tag number
* greater than twenty-five, so it is highly unlikely that you will ever
* encounter the need for a multi-byte type in LDAP.
*
* @deprecated Use {@link #TYPE_MASK_PRIVATE_CLASS} instead.
*/
@Deprecated()
public static final byte TYE_MASK_PRIVATE_CLASS = TYPE_MASK_PRIVATE_CLASS;
/**
* A mask that may be used when building a BER type with a primitive value
* (i.e., a value that is not known to be comprised of a concatenation of the
* encoded representations of zero or more BER elements). To build the type,
* perform a bitwise OR with one of the {@code TYPE_MASK_*_CLASS} constants,
* one of the {@code TYPE_MASK_PC_*} constants, and a byte that represents the
* desired tag number. Note that this method only works for tag numbers
* between zero and thirty, since tag numbers greater than thirty require a
* multi-byte type, but none of the LDAP specifications attempt to use a tag
* number greater than twenty-five, so it is highly unlikely that you will
* ever encounter the need for a multi-byte type in LDAP.
*/
public static final byte TYPE_MASK_PC_PRIMITIVE = 0x00;
/**
* A mask that may be used when building a BER type with a primitive value
* (i.e., a value that is not known to be comprised of a concatenation of the
* encoded representations of zero or more BER elements). To build the type,
* perform a bitwise OR with one of the {@code TYPE_MASK_*_CLASS} constants,
* one of the {@code TYPE_MASK_PC_*} constants, and a byte that represents the
* desired tag number. Note that this method only works for tag numbers
* between zero and thirty, since tag numbers greater than thirty require a
* multi-byte type, but none of the LDAP specifications attempt to use a tag
* number greater than twenty-five, so it is highly unlikely that you will
* ever encounter the need for a multi-byte type in LDAP.
*
* @deprecated Use {@link #TYPE_MASK_PC_PRIMITIVE} instead.
*/
@Deprecated()
public static final byte TYE_MASK_PC_PRIMITIVE = TYPE_MASK_PC_PRIMITIVE;
/**
* A mask that may be used when building a BER type with a constructed value
* (i.e., a value that is comprised of a concatenation of the encoded
* representations of zero or more BER elements). To build the type, perform
* a bitwise OR with one of the {@code TYPE_MASK_*_CLASS} constants, one of
* the {@code TYPE_MASK_PC_*} constants, and a byte that represents the
* desired tag number. Note that this method only works for tag numbers
* between zero and thirty, since tag numbers greater than thirty require a
* multi-byte type, but none of the LDAP specifications attempt to use a tag
* number greater than twenty-five, so it is highly unlikely that you will
* ever encounter the need for a multi-byte type in LDAP.
*/
public static final byte TYPE_MASK_PC_CONSTRUCTED = 0x20;
/**
* A mask that may be used when building a BER type with a constructed value
* (i.e., a value that is comprised of a concatenation of the encoded
* representations of zero or more BER elements). To build the type, perform
* a bitwise OR with one of the {@code TYPE_MASK_*_CLASS} constants, one of
* the {@code TYPE_MASK_PC_*} constants, and a byte that represents the
* desired tag number. Note that this method only works for tag numbers
* between zero and thirty, since tag numbers greater than thirty require a
* multi-byte type, but none of the LDAP specifications attempt to use a tag
* number greater than twenty-five, so it is highly unlikely that you will
* ever encounter the need for a multi-byte type in LDAP.
*
* @deprecated Use {@link #TYPE_MASK_PC_CONSTRUCTED} instead.
*/
@Deprecated()
public static final byte TYE_MASK_PC_CONSTRUCTED = TYPE_MASK_PC_CONSTRUCTED;
}