Class Passphrase

java.lang.Object
org.xrpl.xrpl4j.crypto.core.keys.Passphrase
All Implemented Interfaces:
Destroyable

public class Passphrase extends Object implements Destroyable
A way of choosing a Seed or PrivateKey.
  • Method Details

    • of

      public static Passphrase of(byte[] value)
      Instantiates a new builder.
      Parameters:
      value - This passphrase's binary value.
      Returns:
      A Passphrase.
    • of

      public static Passphrase of(String valueAsString)
      Instantiates a new builder.
      Parameters:
      valueAsString - An UnsignedByteArray containing this key's binary value.
      Returns:
      A Passphrase.
    • value

      public byte[] value()
      Accessor for a copy of the value of this passphrase.
      Returns:
      An instance of UnsignedByteArray.
    • destroy

      public final void destroy()
      Specified by:
      destroy in interface Destroyable
    • isDestroyed

      public final boolean isDestroyed()
      Specified by:
      isDestroyed in interface Destroyable
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object