public class ResponseAuthenticationConverter extends Object implements org.springframework.core.convert.converter.Converter<org.springframework.security.saml2.provider.service.authentication.OpenSamlAuthenticationProvider.ResponseToken,org.springframework.security.saml2.provider.service.authentication.Saml2Authentication>
| Modifier and Type | Field and Description |
|---|---|
private static org.springframework.core.convert.converter.Converter<org.springframework.security.saml2.provider.service.authentication.OpenSamlAuthenticationProvider.ResponseToken,org.springframework.security.saml2.provider.service.authentication.Saml2Authentication> |
defaultConverter |
private String |
groupAttributeName |
| Constructor and Description |
|---|
ResponseAuthenticationConverter(String groupAttributeName)
Response Authentication Converter with optional Group Attribute Name
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.saml2.provider.service.authentication.Saml2Authentication |
convert(org.springframework.security.saml2.provider.service.authentication.OpenSamlAuthenticationProvider.ResponseToken responseToken)
Convert SAML 2 Response Token using default Converter and process authorities based on Group Attribute Name
|
private String |
getAttributeValue(org.opensaml.core.xml.XMLObject xmlObject) |
private Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities(List<org.opensaml.saml.saml2.core.Assertion> assertions) |
private static final org.springframework.core.convert.converter.Converter<org.springframework.security.saml2.provider.service.authentication.OpenSamlAuthenticationProvider.ResponseToken,org.springframework.security.saml2.provider.service.authentication.Saml2Authentication> defaultConverter
private final String groupAttributeName
public ResponseAuthenticationConverter(String groupAttributeName)
groupAttributeName - Group Attribute Name is not requiredpublic org.springframework.security.saml2.provider.service.authentication.Saml2Authentication convert(org.springframework.security.saml2.provider.service.authentication.OpenSamlAuthenticationProvider.ResponseToken responseToken)
convert in interface org.springframework.core.convert.converter.Converter<org.springframework.security.saml2.provider.service.authentication.OpenSamlAuthenticationProvider.ResponseToken,org.springframework.security.saml2.provider.service.authentication.Saml2Authentication>responseToken - SAML 2 Response Tokenprivate Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities(List<org.opensaml.saml.saml2.core.Assertion> assertions)
private String getAttributeValue(org.opensaml.core.xml.XMLObject xmlObject)
Copyright © 2023 Apache NiFi Project. All rights reserved.