org.springframework.security.openid
Class OpenIDAttribute

java.lang.Object
  extended by org.springframework.security.openid.OpenIDAttribute
All Implemented Interfaces:
Serializable

public class OpenIDAttribute
extends Object
implements Serializable

Represents an OpenID subject identity attribute.

Can be used for configuring the OpenID4JavaConsumer with the attributes which should be requested during a fetch request, or to hold values for an attribute which are returned during the authentication process.

Since:
3.0
Version:
$Id: OpenIDAttribute.java 4006 2009-11-24 14:50:01Z ltaylor $
Author:
Luke Taylor
See Also:
Serialized Form

Constructor Summary
OpenIDAttribute(String name, String type)
           
OpenIDAttribute(String name, String type, List<String> values)
           
 
Method Summary
 int getCount()
          The requested count for the attribute when it is used as part of an authentication request.
 String getName()
          The attribute name
 String getType()
          The attribute type Identifier (a URI).
 List<String> getValues()
          The values obtained from an attribute exchange.
 boolean isRequired()
          The "required" flag for the attribute when used with an authentication request.
 void setCount(int count)
           
 void setRequired(boolean required)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OpenIDAttribute

public OpenIDAttribute(String name,
                       String type)

OpenIDAttribute

public OpenIDAttribute(String name,
                       String type,
                       List<String> values)
Method Detail

getName

public String getName()
The attribute name


getType

public String getType()
The attribute type Identifier (a URI).


isRequired

public boolean isRequired()
The "required" flag for the attribute when used with an authentication request. Defaults to "false".


setRequired

public void setRequired(boolean required)

getCount

public int getCount()
The requested count for the attribute when it is used as part of an authentication request. Defaults to 1.


setCount

public void setCount(int count)

getValues

public List<String> getValues()
The values obtained from an attribute exchange.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2009 SpringSource, Inc. All Rights Reserved.