public class OctetString extends AbstractData
Constructor and Description |
---|
OctetString()
The default constructor.
|
OctetString(byte[] value)
Constructs the
OctetString object with the specified byte[] value. |
Modifier and Type | Method and Description |
---|---|
byte[] |
byteArrayValue()
Gets the value of
this object as a byte[] . |
java.lang.Object |
clone()
Creates a deep copy of
this object. |
boolean |
equals(java.lang.Object that)
Compares this object to another
OctetString to see if they are equal. |
int |
getSize()
Returns the size of the
OctetString in bytes. |
int |
hashCode()
Returns a hash code value for the object.
|
void |
setValue(byte[] value)
Sets the value of this object to the specified
byte[] value. |
public OctetString()
OctetString
to the default value
(an empty byte[]
).public OctetString(byte[] value)
OctetString
object with the specified byte[]
value.value
- specifies the new value.public final byte[] byteArrayValue()
this
object as a byte[]
.byte[]
value of 'this' object.public void setValue(byte[] value)
byte[]
value.value
- specifies the new value.public final int getSize()
OctetString
in bytes.OctetString
in bytes.public java.lang.Object clone()
AbstractData
this
object.clone
in class AbstractData
public boolean equals(java.lang.Object that)
OctetString
to see if they are equal. Two OctetString
objects are considered equal if and only if they have identical byte[]
values.equals
in class java.lang.Object
that
- the OctetString
object to be compared to.public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2024 OSS Nokalva, Inc. All rights reserved.
This document is proprietary to OSS Nokalva, Inc., and may be used only by their direct licensees. Distribution is not permitted. This copyright statement must not be removed.