Class SamlResponseAuthenticationConverter

java.lang.Object
io.jmix.saml.converter.SamlResponseAuthenticationConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<org.springframework.security.saml2.provider.service.authentication.OpenSaml4AuthenticationProvider.ResponseToken,org.springframework.security.saml2.provider.service.authentication.Saml2Authentication>

public class SamlResponseAuthenticationConverter extends Object implements org.springframework.core.convert.converter.Converter<org.springframework.security.saml2.provider.service.authentication.OpenSaml4AuthenticationProvider.ResponseToken,org.springframework.security.saml2.provider.service.authentication.Saml2Authentication>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final SamlUserMapper
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.security.saml2.provider.service.authentication.Saml2Authentication
    convert(org.springframework.security.saml2.provider.service.authentication.OpenSaml4AuthenticationProvider.ResponseToken responseToken)
     
    protected org.opensaml.saml.saml2.core.Assertion
    getAssertion(org.springframework.security.saml2.provider.service.authentication.OpenSaml4AuthenticationProvider.ResponseToken responseToken)
    Extracts assertion from SAML response, handling both plain and encrypted assertions.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.core.convert.converter.Converter

    andThen
  • Field Details

  • Constructor Details

    • SamlResponseAuthenticationConverter

      public SamlResponseAuthenticationConverter(SamlUserMapper samlUserMapper)
  • Method Details

    • convert

      public org.springframework.security.saml2.provider.service.authentication.Saml2Authentication convert(org.springframework.security.saml2.provider.service.authentication.OpenSaml4AuthenticationProvider.ResponseToken responseToken)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<org.springframework.security.saml2.provider.service.authentication.OpenSaml4AuthenticationProvider.ResponseToken,org.springframework.security.saml2.provider.service.authentication.Saml2Authentication>
    • getAssertion

      protected org.opensaml.saml.saml2.core.Assertion getAssertion(org.springframework.security.saml2.provider.service.authentication.OpenSaml4AuthenticationProvider.ResponseToken responseToken)
      Extracts assertion from SAML response, handling both plain and encrypted assertions.