public class KeyUsage
extends com.objsys.asn1j.runtime.Asn1BitString
| Modifier and Type | Field and Description |
|---|---|
static int |
cRLSign |
static int |
dataEncipherment |
static int |
decipherOnly |
static int |
digitalSignature |
static int |
encipherOnly |
static int |
keyAgreement |
static int |
keyCertSign |
static int |
keyEncipherment |
static int |
nonRepudiation |
ASN1VALUE, BITS, HEX, HEXBIN, mStringFormat, numbits, TAG, trimZeroBits, valueBIT_STRING, BMPString, BOOLEAN, DATE, DATE_TIME, DURATION, ENUMERATED, EOC, EXTERNAL, GeneralString, GeneralTime, GraphicString, IA5String, INTEGER, NULL, NumericString, OBJECT_IDENTIFIER, ObjectDescriptor, OCTET_STRING, OID_IRI, OpenType, PrintableString, REAL, RELATIVE_OID_IRI, RelativeOID, SEQUENCE, SET, T61String, TeletexString, TIME, TIME_OF_DAY, UniversalString, UTCTime, UTF8String, VideotexString, VisibleString, z| Constructor and Description |
|---|
KeyUsage()
This constructor creates an empty bit string that can be used in
a decode method call to receive a bit string value.
|
KeyUsage(java.util.BitSet bitSet)
This constructor initializes the bit string value from the given
BitSet object.
|
KeyUsage(boolean[] bitValues)
This constructor initializes the bit string value from the given
boolean array.
|
KeyUsage(byte[] data)
This constructor initializes the bit string value with the
given bytes, using all 8 bits of every byte.
|
KeyUsage(int numbits_,
byte[] data)
This constructor initializes the bit string value with the
given number of bits and data.
|
KeyUsage(java.lang.String value_)
This constructor parses the given ASN.1 value text (either a
binary or hex data string) and assigns the values to the internal
bit string.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decode(com.objsys.asn1j.runtime.Asn1BerDecodeBuffer buffer,
boolean explicit,
int implicitLength) |
int |
encode(com.objsys.asn1j.runtime.Asn1BerEncodeBuffer buffer,
boolean explicit) |
clear, decode, decode, decode, decode, decode, decode, decode, decodeXER, decodeXML, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, equals, equals, getLength, hashCode, isNamedBitStr, isSet, set, set, toBoolArray, toHexString, toInputStream, toStringpublic static final int digitalSignature
public static final int nonRepudiation
public static final int keyEncipherment
public static final int dataEncipherment
public static final int keyAgreement
public static final int keyCertSign
public static final int cRLSign
public static final int encipherOnly
public static final int decipherOnly
public KeyUsage()
public KeyUsage(byte[] data)
data - Binary bit string contentspublic KeyUsage(int numbits_,
byte[] data)
numbits_ - Number of bitsdata - Binary bit string contentspublic KeyUsage(boolean[] bitValues)
bitValues - The boolean arraypublic KeyUsage(java.lang.String value_)
throws com.objsys.asn1j.runtime.Asn1ValueParseException
com.objsys.asn1j.runtime.Asn1ValueParseExceptionpublic KeyUsage(java.util.BitSet bitSet)
bitSet - Java BitSet objectpublic void decode(com.objsys.asn1j.runtime.Asn1BerDecodeBuffer buffer,
boolean explicit,
int implicitLength)
throws com.objsys.asn1j.runtime.Asn1Exception,
java.io.IOException
decode in interface com.objsys.asn1j.runtime.Asn1TypeIFdecode in class com.objsys.asn1j.runtime.Asn1BitStringcom.objsys.asn1j.runtime.Asn1Exceptionjava.io.IOExceptionpublic int encode(com.objsys.asn1j.runtime.Asn1BerEncodeBuffer buffer,
boolean explicit)
throws com.objsys.asn1j.runtime.Asn1Exception
encode in interface com.objsys.asn1j.runtime.Asn1TypeIFencode in class com.objsys.asn1j.runtime.Asn1BitStringcom.objsys.asn1j.runtime.Asn1ExceptionCopyright © 2025. All rights reserved.