Class OAuthStoreKey
java.lang.Object
com.revetsec.oauth.server.OAuthStoreKey
Opaque issuer storage address. Reconstruction checks syntax and grants no protocol authority.
Persist the exact storage string; identifiers are sensitive and diagnostics redact them.
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumIssuer storage record kinds; a later release may add values. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares exact storage addresses.static @NonNull OAuthStoreKeyfromStoredForm(@NonNull String storageKey) Reconstructs a storage address, bounded to 256 ASCII characters and the current canonical format.getKind()Returns the storage record kind, which alone confers no authority.Releases the sensitive opaque address for persistence; never log it.inthashCode()Returns the exact address hash.toString()Redacts the address.
-
Method Details
-
fromStoredForm
Reconstructs a storage address, bounded to 256 ASCII characters and the current canonical format. The issuer checks its namespace before using this address. This does not authenticate a record.- Parameters:
storageKey- the exact persisted address- Returns:
- the bounded address
- Throws:
NullPointerException- if the argument is nullIllegalArgumentException- if its format is invalid- Since:
- 1.0.0
-
getStorageKey
Releases the sensitive opaque address for persistence; never log it.- Returns:
- the exact storage address
- Since:
- 1.0.0
-
getKind
Returns the storage record kind, which alone confers no authority.- Returns:
- the record kind
- Since:
- 1.0.0
-
equals
-
hashCode
-
toString
-