Class Saml2UserAuthenticationInfoAuditData
java.lang.Object
se.swedenconnect.spring.saml.idp.audit.data.Saml2AuditData
se.swedenconnect.spring.saml.idp.audit.data.Saml2UserAuthenticationInfoAuditData
- All Implemented Interfaces:
Serializable
Audit data including information about the user authentication.
- Author:
- Martin Lindström
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
If the current authentication object is being re-used, i.e., if SSO was applied, this object holds information about the instance when the user was authenticated. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionOptional ID for authenticating authority.The LoA URI (level of assurance).The authentication instant.getName()
Gets the name of this data element.If this was a signature operation, the field tells whether a sign message was displayed.If SSO was applied, this field holds information about the instance when the user was authenticated.The subject locality (IP).The SAML attributes delivered by the authenticator - it is not sure that all are relased.boolean
Whether this authentication is allowed to be re-used in SSO scenarios.of
(Saml2UserAuthentication token, boolean signServicePeer) Creates aSaml2UserAuthenticationInfoAuditData
based on the suppliedSaml2UserAuthentication
token.void
setAllowedToReuse
(boolean allowedToReuse) Whether this authentication is allowed to be re-used in SSO scenarios.void
setAuthnAuthority
(String authnAuthority) Optional ID for authenticating authority.void
setAuthnContextClassRef
(String authnContextClassRef) The LoA URI (level of assurance).void
setAuthnInstant
(Instant authnInstant) The authentication instant.void
setSignMessageDisplayed
(Boolean signMessageDisplayed) If this was a signature operation, the field tells whether a sign message was displayed.void
setSsoInformation
(Saml2UserAuthenticationInfoAuditData.SsoInformation ssoInformation) If SSO was applied, this field holds information about the instance when the user was authenticated.void
setSubjectLocality
(String subjectLocality) The subject locality (IP).void
setUserAttributes
(List<Saml2AssertionAuditData.SamlAttribute> userAttributes) The SAML attributes delivered by the authenticator - it is not sure that all are relased.toString()
-
Constructor Details
-
Saml2UserAuthenticationInfoAuditData
public Saml2UserAuthenticationInfoAuditData()
-
-
Method Details
-
getName
Gets the name of this data element. The name should be in "kebab-case", i.e., "data-element".- Specified by:
getName
in classSaml2AuditData
- Returns:
- the audit data name
-
of
public static Saml2UserAuthenticationInfoAuditData of(Saml2UserAuthentication token, boolean signServicePeer) Creates aSaml2UserAuthenticationInfoAuditData
based on the suppliedSaml2UserAuthentication
token.- Parameters:
token
- aSaml2UserAuthentication
objectsignServicePeer
- if the peer is a sign service- Returns:
- a
Saml2UserAuthenticationInfoAuditData
-
toString
-
getAuthnInstant
The authentication instant. -
setAuthnInstant
The authentication instant. -
getSubjectLocality
The subject locality (IP). -
setSubjectLocality
The subject locality (IP). -
getAuthnContextClassRef
The LoA URI (level of assurance). -
setAuthnContextClassRef
The LoA URI (level of assurance). -
getAuthnAuthority
Optional ID for authenticating authority. -
setAuthnAuthority
Optional ID for authenticating authority. -
getUserAttributes
The SAML attributes delivered by the authenticator - it is not sure that all are relased. -
setUserAttributes
The SAML attributes delivered by the authenticator - it is not sure that all are relased. -
getSignMessageDisplayed
If this was a signature operation, the field tells whether a sign message was displayed. -
setSignMessageDisplayed
If this was a signature operation, the field tells whether a sign message was displayed. -
isAllowedToReuse
public boolean isAllowedToReuse()Whether this authentication is allowed to be re-used in SSO scenarios. -
setAllowedToReuse
public void setAllowedToReuse(boolean allowedToReuse) Whether this authentication is allowed to be re-used in SSO scenarios. -
getSsoInformation
If SSO was applied, this field holds information about the instance when the user was authenticated. -
setSsoInformation
If SSO was applied, this field holds information about the instance when the user was authenticated.
-