org.springframework.security.config.annotation.web.configurers.openid
Class OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer

java.lang.Object
  extended by org.springframework.security.config.annotation.web.configurers.openid.OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer
Enclosing class:
OpenIDLoginConfigurer.AttributeExchangeConfigurer

public final class OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer
extends Object

Configures an OpenIDAttribute

Since:
3.2

Method Summary
 OpenIDLoginConfigurer.AttributeExchangeConfigurer and()
          Gets the OpenIDLoginConfigurer.AttributeExchangeConfigurer for further customization of the attributes
 OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer count(int count)
          Specifies the number of attribute values to request.
 OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer required(boolean required)
          Specifies that this attribute is required.
 OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer type(String type)
          The OpenID attribute type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 is false. 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(String type)
The OpenID attribute type.

Parameters:
type -
Returns:

and

public OpenIDLoginConfigurer.AttributeExchangeConfigurer and()
Gets the OpenIDLoginConfigurer.AttributeExchangeConfigurer for further customization of the attributes

Returns:
the OpenIDLoginConfigurer.AttributeExchangeConfigurer.AttributeConfigurer