Class OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer
- java.lang.Object
-
- org.springframework.security.config.annotation.web.configurers.openid.OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer
-
- Enclosing class:
- OpenIDLoginConfigurer.AttributeExchangeConfigurer
public final class OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer extends java.lang.ObjectConfigures anOpenIDAttribute- Since:
- 3.2
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenIDLoginConfigurer.AttributeExchangeConfigurerand()Gets theOpenIDLoginConfigurer.AttributeExchangeConfigurerfor further customization of the attributesOpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurercount(int count)Specifies the number of attribute values to request.OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurername(java.lang.String name)The OpenID attribute name.OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurerrequired(boolean required)Specifies that this attribute is required.OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurertype(java.lang.String type)The OpenID attribute type.
-
-
-
Method Detail
-
count
public OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer count(int count)
Specifies the number of attribute values to request. Default is 1.- Parameters:
count- the number of attributes to request.- Returns:
- the
OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurerfor further customization
-
required
public OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer required(boolean required)
Specifies that this attribute is required. The default isfalse. Note that as outlined in the OpenID specification, required attributes are not validated by the OpenID Provider. Developers should perform any validation in custom code.- Parameters:
required- specifies the attribute is required- Returns:
- the
OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurerfor further customization
-
type
public OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer type(java.lang.String type)
The OpenID attribute type.- Parameters:
type-- Returns:
- the
OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurerfor further customizations
-
name
public OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer name(java.lang.String name)
The OpenID attribute name.- Parameters:
name-- Returns:
- the
OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurerfor further customizations
-
and
public OpenIDLoginConfigurer.AttributeExchangeConfigurer and()
Gets theOpenIDLoginConfigurer.AttributeExchangeConfigurerfor further customization of the attributes
-
-