Class OAuthClientMetadataCacheKey

java.lang.Object
com.revetsec.oauth.server.OAuthClientMetadataCacheKey

@Immutable @CheckReturnValue public final class OAuthClientMetadataCacheKey extends Object
Bounded opaque address for optional client-metadata storage. Reconstructing an address grants no authority. The core binds stable issuer/configuration and exact client identities; providers preserve the string exactly.
Since:
1.0.0
Author:
Mark Allen
  • Method Details

    • fromStoredForm

      Reconstructs the current address format: fixed prefix, two canonical 32-byte base64url digests separated by a colon. This checks bounded syntax only; it does not verify namespace or record authenticity.
      Parameters:
      value - the exact persisted string
      Returns:
      the bounded address
      Throws:
      NullPointerException - if value is null
      IllegalArgumentException - if the format is invalid
      Since:
      1.0.0
    • getStorageKey

      Releases the opaque storage string; keep it out of logs and responses.
      Returns:
      the exact address
      Since:
      1.0.0
    • equals

      public boolean equals(@Nullable Object other)
      Compares exact addresses.
      Overrides:
      equals in class Object
      Parameters:
      other - the possible address
      Returns:
      whether they match
      Since:
      1.0.0
    • hashCode

      public int hashCode()
      Returns the address hash.
      Overrides:
      hashCode in class Object
      Returns:
      the hash
      Since:
      1.0.0
    • toString

      Redacts the address.
      Overrides:
      toString in class Object
      Returns:
      a fixed description
      Since:
      1.0.0