Class PendingAuthorizationSource
java.lang.Object
com.revetsec.oauth.PendingAuthorizationSource
A browser-bound source for completing one authorization. A sealed form must come from the browser cookie set at
begin; a store source uses that browser's binding. Neither variant exposes a state-only completion path.
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionfromSealedForm(@NonNull String sealedForm, @NonNull StateSealer sealer, @NonNull String context) Uses a sealed pending-authorization cookie under an exact application context.fromStore(@NonNull PendingAuthorizationStore store, @NonNull BrowserBinding browserBinding) Uses a trusted store with a browser-specific binding.toString()Redacts the source and its browser binding.
-
Method Details
-
fromSealedForm
public static @NonNull PendingAuthorizationSource fromSealedForm(@NonNull String sealedForm, @NonNull StateSealer sealer, @NonNull String context) Uses a sealed pending-authorization cookie under an exact application context.- Parameters:
sealedForm- browser cookie valuesealer- sealing and verification keyscontext- fixed application context- Returns:
- the source
- Since:
- 1.0.0
-
fromStore
public static @NonNull PendingAuthorizationSource fromStore(@NonNull PendingAuthorizationStore store, @NonNull BrowserBinding browserBinding) Uses a trusted store with a browser-specific binding. The store must consume atomically and protect confidentiality/integrity of plaintext pending records and bindings. The unkeyed binding digest is not a MAC.- Parameters:
store- the storebrowserBinding- browser-specific secret- Returns:
- the source
- Since:
- 1.0.0
-
toString
-