Class OpenIDLoginConfigurer.AttributeExchangeConfigurer
java.lang.Object
org.springframework.security.config.annotation.web.configurers.openid.OpenIDLoginConfigurer.AttributeExchangeConfigurer
- Enclosing class:
- OpenIDLoginConfigurer<H extends HttpSecurityBuilder<H>>
A class used to add OpenID attributes to look up
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionand()
Get theOpenIDLoginConfigurer
to customize the OpenID configuration furtherAdds anOpenIDAttribute
with the given nameattribute
(Customizer<OpenIDLoginConfigurer<H>.AttributeExchangeConfigurer.AttributeConfigurer> attributeCustomizer) Adds anOpenIDAttribute
named "default-attribute".attribute
(OpenIDAttribute attribute) Adds anOpenIDAttribute
to be obtained for the configured OpenID pattern.identifierPattern
(String identifierPattern) Sets the regular expression for matching on OpenID's (i.e.
-
Method Details
-
and
Get theOpenIDLoginConfigurer
to customize the OpenID configuration further- Returns:
- the
OpenIDLoginConfigurer
-
identifierPattern
public OpenIDLoginConfigurer<H>.AttributeExchangeConfigurer identifierPattern(String identifierPattern) Sets the regular expression for matching on OpenID's (i.e. "https://www.google.com/.*", ".*yahoo.com.*", etc)- Parameters:
identifierPattern
- the regular expression for matching on OpenID's- Returns:
- the
OpenIDLoginConfigurer<H extends HttpSecurityBuilder<H>>.AttributeExchangeConfigurer
for further customization of attribute exchange
-
attribute
Adds anOpenIDAttribute
to be obtained for the configured OpenID pattern.- Parameters:
attribute
- theOpenIDAttribute
to obtain- Returns:
- the
OpenIDLoginConfigurer<H extends HttpSecurityBuilder<H>>.AttributeExchangeConfigurer
for further customization of attribute exchange
-
attribute
public OpenIDLoginConfigurer<H>.AttributeExchangeConfigurer.AttributeConfigurer attribute(String name) Adds anOpenIDAttribute
with the given name- Parameters:
name
- the name of theOpenIDAttribute
to create- Returns:
- an
OpenIDLoginConfigurer<H extends HttpSecurityBuilder<H>>.AttributeExchangeConfigurer.AttributeConfigurer
to further configure theOpenIDAttribute
that should be obtained.
-
attribute
public OpenIDLoginConfigurer<H>.AttributeExchangeConfigurer attribute(Customizer<OpenIDLoginConfigurer<H>.AttributeExchangeConfigurer.AttributeConfigurer> attributeCustomizer) Adds anOpenIDAttribute
named "default-attribute". The name can by updated usingOpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer.name(String)
.- Parameters:
attributeCustomizer
- theCustomizer
to provide more options for theOpenIDLoginConfigurer<H extends HttpSecurityBuilder<H>>.AttributeExchangeConfigurer.AttributeConfigurer
- Returns:
- a
OpenIDLoginConfigurer<H extends HttpSecurityBuilder<H>>.AttributeExchangeConfigurer
for further customizations
-