Interface SamlObserver
Redacted caller-thread events for SAML service-provider operations. Hooks must be fast and
thread-safe. Revetsec contains hook failures except virtual-machine errors and restores
interruption. Events contain no connection, subject, request ID, XML, key or browser state.
A terminal event follows each start event when an operation returns or throws an ordinary
runtime exception. A
SamlObserver.Outcome.SUCCEEDED login means Revetsec authenticated the SAML
response; the application still decides whether to create a local session.- Since:
- 1.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumFixed SAML SP operation kinds.static enumFixed outcomes without protocol payloads. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidCalled when an SP builds after explicitly acknowledging disabled JVM-global XML-signature secure validation.default voiddidHandleOperation(@NonNull SamlObserver.Operation operation, @NonNull SamlObserver.Outcome outcome, @NonNull Duration elapsed) Called when an operation returns a sealed result or throws an ordinary runtime exception.static @NonNull SamlObserverReturns the shared observer whose hooks do nothing.default voidwillHandleOperation(@NonNull SamlObserver.Operation operation) Called before a SAML SP operation.
-
Method Details
-
disabledInstance
Returns the shared observer whose hooks do nothing.- Returns:
- disabled observer
- Since:
- 1.0.0
-
willHandleOperation
Called before a SAML SP operation.- Parameters:
operation- fixed operation kind- Since:
- 1.0.0
-
didHandleOperation
default void didHandleOperation(@NonNull SamlObserver.Operation operation, @NonNull SamlObserver.Outcome outcome, @NonNull Duration elapsed) Called when an operation returns a sealed result or throws an ordinary runtime exception.- Parameters:
operation- fixed operation kindoutcome- fixed result classificationelapsed- monotonic elapsed duration- Since:
- 1.0.0
-
didAcknowledgeGlobalSecureValidationDisabled
Called when an SP builds after explicitly acknowledging disabled JVM-global XML-signature secure validation. No runtime property value or protocol data is exposed.- Since:
- 1.0.0
-