Class SamlAuthentication
java.lang.Object
com.revetsec.saml.SamlAuthentication
Identity released only after signature, request, conditions, audience and replay checks succeed.
The application must map it within the returned connection ID namespace; the IdP entity ID alone
is not a cross-tenant account key.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the final possible assertion acceptance instant for this completion context.Returns the covered assertion ID.Returns attributes from the covered assertion, including opaque complex values.getAttributeValues(@NonNull String name) Returns all text values whose exact attribute name matches.Returns the checked authentication context class when supplied.Returns the checked authentication instant.Returns the required application connection namespace.Returns the display-only IdP entity ID.Returns the validated NameID and its qualifiers.Returns a scope-authorized pairwise-id only when the configured connection approved its scope.Returns the checked session index when supplied.Returns the IdP's session expiry when supplied.Returns the checked fields to retain with an application session for logout matching.Returns a scope-authorized subject-id only when the configured connection approved its scope.Returns a stable key only for a persistent NameID.Reports whether an EncryptedAssertion was decrypted before validation.Reports verified Assertion coverage.Reports verified Response coverage.Reports whether this was an explicitly enabled IdP-initiated login.toString()Redacts the identity.
-
Method Details
-
getIdentityProviderConnectionId
Returns the required application connection namespace.- Returns:
- connection ID
- Since:
- 1.0.0
-
getIdentityProviderEntityId
Returns the display-only IdP entity ID.- Returns:
- IdP entity ID
- Since:
- 1.0.0
-
getAssertionId
Returns the covered assertion ID.- Returns:
- assertion ID
- Since:
- 1.0.0
-
getNameId
Returns the validated NameID and its qualifiers.- Returns:
- NameID
- Since:
- 1.0.0
-
getSubjectKey
Returns a stable key only for a persistent NameID. The application also uses the IdP connection ID as the account namespace.- Returns:
- stable subject key when the identifier is persistent
- Since:
- 1.0.0
-
getSubjectId
Returns a scope-authorized subject-id only when the configured connection approved its scope.- Returns:
- optional subject-id
- Since:
- 1.0.0
-
getPairwiseId
Returns a scope-authorized pairwise-id only when the configured connection approved its scope.- Returns:
- optional pairwise-id
- Since:
- 1.0.0
-
getAuthnInstant
Returns the checked authentication instant.- Returns:
- instant
- Since:
- 1.0.0
-
getAuthnContextClassRef
Returns the checked authentication context class when supplied.- Returns:
- optional context class URI
- Since:
- 1.0.0
-
getAttributes
Returns attributes from the covered assertion, including opaque complex values.- Returns:
- immutable attributes
- Since:
- 1.0.0
-
getAttributeValues
-
getSessionIndex
Returns the checked session index when supplied.- Returns:
- optional session index
- Since:
- 1.0.0
-
getSessionNotOnOrAfter
Returns the IdP's session expiry when supplied.- Returns:
- optional expiry
- Since:
- 1.0.0
-
getSessionReference
Returns the checked fields to retain with an application session for logout matching.- Returns:
- session reference
- Since:
- 1.0.0
-
getAssertionExpiresAt
Returns the final possible assertion acceptance instant for this completion context.- Returns:
- expiry
- Since:
- 1.0.0
-
isResponseSigned
Reports verified Response coverage.- Returns:
- true when Response was signed
- Since:
- 1.0.0
-
isAssertionSigned
Reports verified Assertion coverage.- Returns:
- true when Assertion was signed
- Since:
- 1.0.0
-
isUnsolicited
Reports whether this was an explicitly enabled IdP-initiated login.- Returns:
- true for unsolicited login
- Since:
- 1.0.0
-
isAssertionEncrypted
Reports whether an EncryptedAssertion was decrypted before validation.- Returns:
- true when assertion encryption was used
- Since:
- 1.0.0
-
toString
-