Class Saml2AuthnRequestAuditData
java.lang.Object
se.swedenconnect.spring.saml.idp.audit.data.Saml2AuditData
se.swedenconnect.spring.saml.idp.audit.data.Saml2AuthnRequestAuditData
- All Implemented Interfaces:
Serializable
An audit data element for an
AuthnRequest
.- Author:
- Martin Lindström
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionListing of requested "LoA:s".getId()
The AuthnRequest ID.The issuer of the AuthnRequest.getName()
Gets the name of this data element.The relay state.boolean
Is "force authn" requested?boolean
Is passive authentication requested?static Saml2AuthnRequestAuditData
Creates aSaml2AuthnRequestAuditData
given theAuthnRequest
and relay state.void
setAuthnContextClassRefs
(List<String> authnContextClassRefs) Listing of requested "LoA:s".void
setForceAuthn
(boolean forceAuthn) Is "force authn" requested?void
The AuthnRequest ID.void
The issuer of the AuthnRequest.void
setPassive
(boolean passive) Is passive authentication requested?void
setRelayState
(String relayState) The relay state.toString()
-
Constructor Details
-
Saml2AuthnRequestAuditData
public Saml2AuthnRequestAuditData()
-
-
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 Saml2AuthnRequestAuditData of(org.opensaml.saml.saml2.core.AuthnRequest authnRequest, String relayState) Creates aSaml2AuthnRequestAuditData
given theAuthnRequest
and relay state.- Parameters:
authnRequest
- theAuthnRequest
relayState
- the relay state (ornull
)- Returns:
- a
Saml2AuthnRequestAuditData
-
toString
-
getId
The AuthnRequest ID. -
setId
The AuthnRequest ID. -
getIssuer
The issuer of the AuthnRequest. -
setIssuer
The issuer of the AuthnRequest. -
getAuthnContextClassRefs
Listing of requested "LoA:s". -
setAuthnContextClassRefs
Listing of requested "LoA:s". -
isForceAuthn
public boolean isForceAuthn()Is "force authn" requested? -
setForceAuthn
public void setForceAuthn(boolean forceAuthn) Is "force authn" requested? -
isPassive
public boolean isPassive()Is passive authentication requested? -
setPassive
public void setPassive(boolean passive) Is passive authentication requested? -
getRelayState
The relay state. -
setRelayState
The relay state.
-