Class OpenIDLoginConfigurer.AttributeExchangeConfigurer
- java.lang.Object
-
- org.springframework.security.config.annotation.web.configurers.openid.OpenIDLoginConfigurer.AttributeExchangeConfigurer
-
- Enclosing class:
- OpenIDLoginConfigurer<H extends HttpSecurityBuilder<H>>
public final class OpenIDLoginConfigurer.AttributeExchangeConfigurer extends java.lang.ObjectA class used to add OpenID attributes to look up
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classOpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurerConfigures anOpenIDAttribute
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenIDLoginConfigurer<H>and()Get theOpenIDLoginConfigurerto customize the OpenID configuration furtherOpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurerattribute(java.lang.String name)Adds anOpenIDAttributewith the given nameOpenIDLoginConfigurer.AttributeExchangeConfigurerattribute(Customizer<OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer> attributeCustomizer)Adds anOpenIDAttributenamed "default-attribute".OpenIDLoginConfigurer.AttributeExchangeConfigurerattribute(org.springframework.security.openid.OpenIDAttribute attribute)Adds anOpenIDAttributeto be obtained for the configured OpenID pattern.OpenIDLoginConfigurer.AttributeExchangeConfigureridentifierPattern(java.lang.String identifierPattern)Sets the regular expression for matching on OpenID's (i.e.
-
-
-
Method Detail
-
and
public OpenIDLoginConfigurer<H> and()
Get theOpenIDLoginConfigurerto customize the OpenID configuration further- Returns:
- the
OpenIDLoginConfigurer
-
identifierPattern
public OpenIDLoginConfigurer.AttributeExchangeConfigurer identifierPattern(java.lang.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.AttributeExchangeConfigurerfor further customization of attribute exchange
-
attribute
public OpenIDLoginConfigurer.AttributeExchangeConfigurer attribute(org.springframework.security.openid.OpenIDAttribute attribute)
Adds anOpenIDAttributeto be obtained for the configured OpenID pattern.- Parameters:
attribute- theOpenIDAttributeto obtain- Returns:
- the
OpenIDLoginConfigurer.AttributeExchangeConfigurerfor further customization of attribute exchange
-
attribute
public OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer attribute(java.lang.String name)
Adds anOpenIDAttributewith the given name- Parameters:
name- the name of theOpenIDAttributeto create- Returns:
- an
OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurerto further configure theOpenIDAttributethat should be obtained.
-
attribute
public OpenIDLoginConfigurer.AttributeExchangeConfigurer attribute(Customizer<OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer> attributeCustomizer)
Adds anOpenIDAttributenamed "default-attribute". The name can by updated usingOpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer.name(String).- Parameters:
attributeCustomizer- theCustomizerto provide more options for theOpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer- Returns:
- a
OpenIDLoginConfigurer.AttributeExchangeConfigurerfor further customizations
-
-