Class SamlAuthenticationResult.StatusReceived
java.lang.Object
com.revetsec.saml.SamlAuthenticationResult.StatusReceived
- All Implemented Interfaces:
SamlAuthenticationResult
- Enclosing interface:
SamlAuthenticationResult
@Immutable
public static final class SamlAuthenticationResult.StatusReceived
extends Object
implements SamlAuthenticationResult
A request-bound non-success IdP status. Authentication reports whether a verified Response
signature covered that status. It never contains an identity.
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface SamlAuthenticationResult
SamlAuthenticationResult.Indeterminate, SamlAuthenticationResult.Reason, SamlAuthenticationResult.Rejected, SamlAuthenticationResult.StatusCode, SamlAuthenticationResult.StatusReceived, SamlAuthenticationResult.Succeeded, SamlAuthenticationResult.UnavailableModifier and TypeInterfaceDescriptionstatic enumA replay mutation may have succeeded, so the caller must reconcile before retrying.static enumBounded local validation reasons, with no raw input attached.static final classA fixed local validation rejection.static enumBounded classification of a SAML non-success StatusCode.static final classA request-bound non-success IdP status.static final classA fully validated, replay-fenced authentication.static enumA required local capability or backend was unavailable. -
Method Summary
Modifier and TypeMethodDescriptionReturns a bounded status classification.Reports whether the trusted IdP signed the Response containing this status.toString()Redacts the received response.
-
Method Details
-
getStatusCode
Returns a bounded status classification. A recognized immediate AuthnFailed, NoAuthnContext or RequestDenied subcode under Requester/Responder supplies the classification; otherwise the primary code supplies it. Deeper extension codes are shape-checked but do not override it. This classification alone is not signature proof; consultisAuthenticated()separately.- Returns:
- status code
- Since:
- 1.0.0
-
isAuthenticated
Reports whether the trusted IdP signed the Response containing this status.- Returns:
- true when authenticated
- Since:
- 1.0.0
-
toString
-