Interface AuthenticationRequirements
- All Superinterfaces:
Serializable
An interface representing the authentication requirements that we deduce from an
AuthnRequest message and the
sending service provider's EntityDescriptor.- Author:
- Martin Lindström
-
Method Summary
Modifier and TypeMethodDescriptionGets a list of the requested authentication contexts (AuthnContextClassRef).Gets the list of declared SAML entity categories for the relying party.The PrincipalSelection extension defined in Sweden Connect technical framework enables a relying party to include one or more attributes in theAuthnRequestto inform the IdP about the user that is being authenticated.Gets the attributes requested directly in the authentication request or indirectly from the relying party metadata (AttributeConsumingServiceor entity category declarations).Gets theSadRequestExtensionwhich is the representation of theSADRequestextension as specified in Signature Activation Protocol for Federated Signing.Gets theSignatureMessageExtensionwhich is the representation of theSignMessageextension as specified in section 3.1.2 of DSS Extension for Federated Central Signing Services.Gets theUserMessageExtensionwhich is the representation of theUserMessageextension as specified in User Message Extension in SAML Authentication Requests.booleanTells whether "force authentication" has been set, i.e., whether to force user authentication even though a valid user session exists.booleanTells whether we should issue an assertion without requiring the user to authenticate again.
-
Method Details
-
isForceAuthn
boolean isForceAuthn()Tells whether "force authentication" has been set, i.e., whether to force user authentication even though a valid user session exists.- Returns:
trueif authentication should be forced, andfalseotherwise
-
isPassiveAuthn
boolean isPassiveAuthn()Tells whether we should issue an assertion without requiring the user to authenticate again.- Returns:
trueif passive authentication is required, andfalseotherwise
-
getEntityCategories
Gets the list of declared SAML entity categories for the relying party.- Returns:
- a list of URI:s representing declared entity categories
-
getRequestedAttributes
Gets the attributes requested directly in the authentication request or indirectly from the relying party metadata (AttributeConsumingServiceor entity category declarations).Note: Within the Swedish eID Framework the use of declared entity categories is the preferred way of informing the IdP about which attributes a relying party requests, see
getEntityCategories().- Returns:
- a collection of requested attributes
-
getAuthnContextRequirements
Gets a list of the requested authentication contexts (AuthnContextClassRef).The returned list is exhaustive, meaning that all possible URI:s are sent. For example if
minimumcomparison is declared, the list is filled with all possible URI:s.- Returns:
- a list of URI:s
-
getPrincipalSelectionAttributes
The PrincipalSelection extension defined in Sweden Connect technical framework enables a relying party to include one or more attributes in theAuthnRequestto inform the IdP about the user that is being authenticated. This method returns this information.- Returns:
- a (possibly empty) collection of "principal selection" attributes
-
getSignatureMessageExtension
Gets theSignatureMessageExtensionwhich is the representation of theSignMessageextension as specified in section 3.1.2 of DSS Extension for Federated Central Signing Services.- Returns:
- the sign message extension, or
nullif not present
-
getUserMessageExtension
Gets theUserMessageExtensionwhich is the representation of theUserMessageextension as specified in User Message Extension in SAML Authentication Requests.- Returns:
- the
UserMessageExtensionornullif not set
-
getSadRequestExtension
Gets theSadRequestExtensionwhich is the representation of theSADRequestextension as specified in Signature Activation Protocol for Federated Signing.- Returns:
- the SAD request extension, or
nullif not present
-