Class CredentialUri

java.lang.Object
org.xrpl.xrpl4j.model.immutables.Wrapper<String>
org.xrpl.xrpl4j.model.transactions.CredentialUri
All Implemented Interfaces:
Serializable, Comparable<Wrapper<String>>

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class CredentialUri extends Wrapper<String>
A wrapped String containing a Credential Uri.
See Also:
  • Method Details

    • value

      public String value()
      The wrapped value.
      Specified by:
      value in class Wrapper<String>
      Returns:
      The wrapped value.
    • of

      public static CredentialUri of(String value)
      Construct a new immutable CredentialUri instance.
      Parameters:
      value - The value for the value attribute
      Returns:
      An immutable CredentialUri instance
    • ofPlainText

      public static CredentialUri ofPlainText(String plaintext)
      Constructs an CredentialUri using a String value.
      Parameters:
      plaintext - A string value representing the Uri in plaintext.
      Returns:
      An CredentialUri of plaintext.
    • validateLength

      @Check public void validateLength()
      Validates that a CredentialUri's value's length is capped at 512 characters.
    • validateHexEncoding

      @Check public void validateHexEncoding()
      Validates that a CredentialUri's value is encoded in hexadecimal characters.
    • toString

      public String toString()
      Overrides:
      toString in class Wrapper<String>
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Wrapper<String>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Wrapper<String>