Package org.xrpl.xrpl4j.crypto
Class PublicKey.DefaultPublicKey
java.lang.Object
org.xrpl.xrpl4j.crypto.PublicKey.DefaultPublicKey
- All Implemented Interfaces:
PublicKey
- Direct Known Subclasses:
ImmutableDefaultPublicKey
- Enclosing interface:
- PublicKey
@Immutable
public abstract static class PublicKey.DefaultPublicKey
extends Object
implements PublicKey
Abstract implementation for immutables.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.xrpl.xrpl4j.crypto.PublicKey
PublicKey.DefaultPublicKey
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DefaultPublicKey
public DefaultPublicKey()
-
-
Method Details
-
base58Encoded
Description copied from interface:PublicKey
The public-key, as a base-58 encodedString
.- Specified by:
base58Encoded
in interfacePublicKey
- Returns:
- A
String
.
-
base16Encoded
Description copied from interface:PublicKey
The private-key value, as a Base16-encoded (i.e., HEX) string. Note that if this is an Ed25519 private-key, then this value contains a leading prefix of `ED`, in hex.- Specified by:
base16Encoded
in interfacePublicKey
- Returns:
- A
String
.
-
versionType
Description copied from interface:PublicKey
The type of this key.- Specified by:
versionType
in interfacePublicKey
- Returns:
- A
VersionType
.
-
toString
-