public class MessageDigest
extends com.objsys.asn1j.runtime.Asn1OctetString
BIT_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 |
---|
MessageDigest() |
MessageDigest(byte[] data)
This constructor initializes an octet string from the given
byte array by setting the 'value' public member variable in the
base class to the given value.
|
MessageDigest(byte[] data,
int offset,
int nbytes)
This constructor initializes an octet string from a portion
of the given byte array.
|
MessageDigest(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) |
compareTo, decode, decode, decode, decode, decode, decodeXER, decodeXML, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encodeAttribute, encodeBase64Binary, equals, equals, getLength, getMderLength, hashCode, toInputStream, toString
public MessageDigest()
public MessageDigest(byte[] data)
data
- Byte array containing an octet string
in binary form.public MessageDigest(byte[] data, int offset, int nbytes)
data
- Byte array containing an octet string
in binary form.offset
- Starting offset in data from which to copy bytesnbytes
- Number of bytes to copy from target arraypublic MessageDigest(java.lang.String value_) throws com.objsys.asn1j.runtime.Asn1ValueParseException
value_
- The ASN.1 value specification textcom.objsys.asn1j.runtime.Asn1ValueParseException
public 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.Asn1TypeIF
decode
in class com.objsys.asn1j.runtime.Asn1OctetString
com.objsys.asn1j.runtime.Asn1Exception
java.io.IOException
public int encode(com.objsys.asn1j.runtime.Asn1BerEncodeBuffer buffer, boolean explicit) throws com.objsys.asn1j.runtime.Asn1Exception
encode
in interface com.objsys.asn1j.runtime.Asn1TypeIF
encode
in class com.objsys.asn1j.runtime.Asn1OctetString
com.objsys.asn1j.runtime.Asn1Exception
Copyright © 2025. All rights reserved.