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.
  • Constructor Details

    • DefaultPublicKey

      public DefaultPublicKey()
  • Method Details

    • base58Encoded

      @Derived public String base58Encoded()
      Description copied from interface: PublicKey
      The public-key, as a base-58 encoded String.
      Specified by:
      base58Encoded in interface PublicKey
      Returns:
      A String.
    • base16Encoded

      @Derived public 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 interface PublicKey
      Returns:
      A String.
    • versionType

      @Derived public VersionType versionType()
      Description copied from interface: PublicKey
      The type of this key.
      Specified by:
      versionType in interface PublicKey
      Returns:
      A VersionType.
    • toString

      public String toString()
      Overrides:
      toString in class Object