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
ConstructorDescriptionSaml2AuthenticationTokenConverter
(RelyingPartyRegistrationResolver relyingPartyRegistrationResolver) Constructs aSaml2AuthenticationTokenConverter
given a strategy for resolvingRelyingPartyRegistration
s -
Method Summary
Modifier and TypeMethodDescriptionconvert
(jakarta.servlet.http.HttpServletRequest request) void
setAuthenticationRequestRepository
(Saml2AuthenticationRequestRepository<AbstractSaml2AuthenticationRequest> authenticationRequestRepository) Use the givenSaml2AuthenticationRequestRepository
to load authentication request.
-
Constructor Details
-
Saml2AuthenticationTokenConverter
public Saml2AuthenticationTokenConverter(RelyingPartyRegistrationResolver relyingPartyRegistrationResolver) Constructs aSaml2AuthenticationTokenConverter
given a strategy for resolvingRelyingPartyRegistration
s- Parameters:
relyingPartyRegistrationResolver
- the strategy for resolvingRelyingPartyRegistration
s
-
-
Method Details
-
convert
- Specified by:
convert
in interfaceAuthenticationConverter
-
setAuthenticationRequestRepository
public void setAuthenticationRequestRepository(Saml2AuthenticationRequestRepository<AbstractSaml2AuthenticationRequest> authenticationRequestRepository) Use the givenSaml2AuthenticationRequestRepository
to load authentication request.- Parameters:
authenticationRequestRepository
- theSaml2AuthenticationRequestRepository
to use- Since:
- 5.6
-