Package org.openl.security.saml
Class OpenLResponseAuthenticationConverter
- java.lang.Object
-
- org.openl.security.saml.OpenLResponseAuthenticationConverter
-
- 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 OpenLResponseAuthenticationConverter 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>
Creates Saml2Authentication and SimpleUser based on the ResponseToken from the IDP.- Author:
- Eugene Biruk
-
-
Constructor Summary
Constructors Constructor Description OpenLResponseAuthenticationConverter(org.springframework.core.env.PropertyResolver propertyResolver, Consumer<User> syncUserData, BiFunction<String,Collection<? extends org.springframework.security.core.GrantedAuthority>,Collection<Privilege>> privilegeMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.saml2.provider.service.authentication.Saml2Authenticationconvert(org.springframework.security.saml2.provider.service.authentication.OpenSaml4AuthenticationProvider.ResponseToken responseToken)Creates Saml2Authentication and SimpleUser based on the ResponseToken from the IDP.
-
-
-
Constructor Detail
-
OpenLResponseAuthenticationConverter
public OpenLResponseAuthenticationConverter(org.springframework.core.env.PropertyResolver propertyResolver, Consumer<User> syncUserData, BiFunction<String,Collection<? extends org.springframework.security.core.GrantedAuthority>,Collection<Privilege>> privilegeMapper)
-
-
Method Detail
-
convert
public org.springframework.security.saml2.provider.service.authentication.Saml2Authentication convert(org.springframework.security.saml2.provider.service.authentication.OpenSaml4AuthenticationProvider.ResponseToken responseToken)
Creates Saml2Authentication and SimpleUser based on the ResponseToken from the IDP.- Specified by:
convertin interfaceorg.springframework.core.convert.converter.Converter<org.springframework.security.saml2.provider.service.authentication.OpenSaml4AuthenticationProvider.ResponseToken,org.springframework.security.saml2.provider.service.authentication.Saml2Authentication>- Parameters:
responseToken- ResponseToken from the IDP- Returns:
- Saml2Authentication
-
-