Class SecretOctetString

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Variable>, BERSerializable, AssignableFromByteArray, AssignableFromString, Variable

public class SecretOctetString extends OctetString
The SecretOctetString is an OctetString for secret data like keys and passwords. It behaves like a regular OctetString except that the toString() method does not reveal any security information but returns a AuthHMAC192SHA256 hash of the real security information.
Since:
3.6.1
Version:
3.12.2
Author:
Frank Fock
See Also:
  • Constructor Details

    • SecretOctetString

      public SecretOctetString(OctetString secret)
    • SecretOctetString

      public SecretOctetString(byte[] rawValue)
    • SecretOctetString

      public SecretOctetString(byte[] rawValue, int offset, int length)
      Creates an octet string from a byte array.
      Parameters:
      rawValue - an array of bytes.
      offset - the position (zero-based) of the first byte to be copied from rawValueinto the new OctetString.
      length - the number of bytes to be copied.
    • SecretOctetString

      public SecretOctetString()
  • Method Details