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.Object
Configures anOpenIDAttribute
- Since:
- 3.2
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenIDLoginConfigurer.AttributeExchangeConfigurer
and()
Gets theOpenIDLoginConfigurer.AttributeExchangeConfigurer
for further customization of the attributesOpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer
count(int count)
Specifies the number of attribute values to request.OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer
name(java.lang.String name)
The OpenID attribute name.OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer
required(boolean required)
Specifies that this attribute is required.OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer
type(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.AttributeConfigurer
for 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.AttributeConfigurer
for further customization
-
type
public OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer type(java.lang.String type)
The OpenID attribute type.- Parameters:
type
-- Returns:
- the
OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer
for further customizations
-
name
public OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer name(java.lang.String name)
The OpenID attribute name.- Parameters:
name
-- Returns:
- the
OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer
for further customizations
-
and
public OpenIDLoginConfigurer.AttributeExchangeConfigurer and()
Gets theOpenIDLoginConfigurer.AttributeExchangeConfigurer
for further customization of the attributes
-
-