Class Saml2AuthnRequestAuthenticationConverter

java.lang.Object
se.swedenconnect.spring.saml.idp.authnrequest.Saml2AuthnRequestAuthenticationConverter
All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationConverter

public class Saml2AuthnRequestAuthenticationConverter extends Object implements org.springframework.security.web.authentication.AuthenticationConverter
An AuthenticationConverter responsible of decoding a SAML authentication request and checking that is is correct. It will produce an Saml2AuthnRequestAuthenticationToken.
Author:
Martin Lindström
  • Constructor Details

    • Saml2AuthnRequestAuthenticationConverter

      public Saml2AuthnRequestAuthenticationConverter(org.opensaml.saml.metadata.resolver.MetadataResolver metadataResolver, IdentityProviderSettings settings)
      Constructor.
      Parameters:
      metadataResolver - the metadata resolver that we use when finding SP metadata
      settings - the IdP settings
  • Method Details

    • convert

      public org.springframework.security.core.Authentication convert(jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      convert in interface org.springframework.security.web.authentication.AuthenticationConverter
    • getDecoder

      protected org.opensaml.saml.common.binding.decoding.SAMLMessageDecoder getDecoder(jakarta.servlet.http.HttpServletRequest request)
      Gets a decoder bean suitable for the given binding.
      Returns:
      a SAMLMessageDecoder bean