Class Saml2AuthenticationTokenConverter
- java.lang.Object
-
- org.springframework.security.saml2.provider.service.web.Saml2AuthenticationTokenConverter
-
- All Implemented Interfaces:
AuthenticationConverter
public final class Saml2AuthenticationTokenConverter extends java.lang.Object implements AuthenticationConverter
AnAuthenticationConverter
that generates aSaml2AuthenticationToken
appropriate for authenticated a SAML 2.0 Assertion against anAuthenticationManager
.- Since:
- 5.4
-
-
Constructor Summary
Constructors Constructor Description Saml2AuthenticationTokenConverter(org.springframework.core.convert.converter.Converter<javax.servlet.http.HttpServletRequest,RelyingPartyRegistration> relyingPartyRegistrationResolver)
Deprecated.Saml2AuthenticationTokenConverter(RelyingPartyRegistrationResolver relyingPartyRegistrationResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Saml2AuthenticationToken
convert(javax.servlet.http.HttpServletRequest request)
void
setAuthenticationRequestRepository(Saml2AuthenticationRequestRepository<AbstractSaml2AuthenticationRequest> authenticationRequestRepository)
Use the givenSaml2AuthenticationRequestRepository
to load authentication request.
-
-
-
Constructor Detail
-
Saml2AuthenticationTokenConverter
@Deprecated public Saml2AuthenticationTokenConverter(org.springframework.core.convert.converter.Converter<javax.servlet.http.HttpServletRequest,RelyingPartyRegistration> relyingPartyRegistrationResolver)
Deprecated.Constructs aSaml2AuthenticationTokenConverter
given a strategy for resolvingRelyingPartyRegistration
s- Parameters:
relyingPartyRegistrationResolver
- the strategy for resolvingRelyingPartyRegistration
s
-
Saml2AuthenticationTokenConverter
public Saml2AuthenticationTokenConverter(RelyingPartyRegistrationResolver relyingPartyRegistrationResolver)
-
-
Method Detail
-
convert
public Saml2AuthenticationToken convert(javax.servlet.http.HttpServletRequest request)
- 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
-
-