Package org.xrpl.xrpl4j.crypto.core.keys
Class Passphrase
java.lang.Object
org.xrpl.xrpl4j.crypto.core.keys.Passphrase
- All Implemented Interfaces:
Destroyable
A way of choosing a
Seed
or PrivateKey
.-
Method Summary
Modifier and TypeMethodDescriptionfinal void
destroy()
boolean
int
hashCode()
final boolean
static Passphrase
of
(byte[] value) Instantiates a new builder.static Passphrase
Instantiates a new builder.toString()
byte[]
value()
Accessor for a copy of the value of this passphrase.
-
Method Details
-
of
Instantiates a new builder.- Parameters:
value
- This passphrase's binary value.- Returns:
- A
Passphrase
.
-
of
Instantiates a new builder.- Parameters:
valueAsString
- AnUnsignedByteArray
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 interfaceDestroyable
-
isDestroyed
public final boolean isDestroyed()- Specified by:
isDestroyed
in interfaceDestroyable
-
equals
-
hashCode
public int hashCode() -
toString
-