Class Saml2AuthenticationTokenConverter
java.lang.Object
org.springframework.security.saml2.provider.service.web.Saml2AuthenticationTokenConverter
- All Implemented Interfaces:
AuthenticationConverter
public final class Saml2AuthenticationTokenConverter
extends Object
implements AuthenticationConverter
An
AuthenticationConverter that generates a Saml2AuthenticationToken
appropriate for authenticated a SAML 2.0 Assertion against an
AuthenticationManager.- Since:
- 5.4
-
Constructor Summary
ConstructorsConstructorDescriptionSaml2AuthenticationTokenConverter(RelyingPartyRegistrationResolver relyingPartyRegistrationResolver) Constructs aSaml2AuthenticationTokenConvertergiven a strategy for resolvingRelyingPartyRegistrations -
Method Summary
Modifier and TypeMethodDescriptionconvert(jakarta.servlet.http.HttpServletRequest request) voidsetAuthenticationRequestRepository(Saml2AuthenticationRequestRepository<AbstractSaml2AuthenticationRequest> authenticationRequestRepository) Use the givenSaml2AuthenticationRequestRepositoryto load authentication request.
-
Constructor Details
-
Saml2AuthenticationTokenConverter
public Saml2AuthenticationTokenConverter(RelyingPartyRegistrationResolver relyingPartyRegistrationResolver) Constructs aSaml2AuthenticationTokenConvertergiven a strategy for resolvingRelyingPartyRegistrations- Parameters:
relyingPartyRegistrationResolver- the strategy for resolvingRelyingPartyRegistrations
-
-
Method Details
-
convert
- Specified by:
convertin interfaceAuthenticationConverter
-
setAuthenticationRequestRepository
public void setAuthenticationRequestRepository(Saml2AuthenticationRequestRepository<AbstractSaml2AuthenticationRequest> authenticationRequestRepository) Use the givenSaml2AuthenticationRequestRepositoryto load authentication request.- Parameters:
authenticationRequestRepository- theSaml2AuthenticationRequestRepositoryto use- Since:
- 5.6
-