Class OpenIDAttribute

  • All Implemented Interfaces:
    java.io.Serializable

    @Deprecated
    public class OpenIDAttribute
    extends java.lang.Object
    implements java.io.Serializable
    Deprecated.
    The OpenID 1.0 and 2.0 protocols have been deprecated and users are encouraged to migrate to OpenID Connect, which is supported by spring-security-oauth2.
    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
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      OpenIDAttribute​(java.lang.String name, java.lang.String type)
      Deprecated.
       
      OpenIDAttribute​(java.lang.String name, java.lang.String type, java.util.List<java.lang.String> values)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      int getCount()
      Deprecated.
      The requested count for the attribute when it is used as part of an authentication request.
      java.lang.String getName()
      Deprecated.
      The attribute name
      java.lang.String getType()
      Deprecated.
      The attribute type Identifier (a URI).
      java.util.List<java.lang.String> getValues()
      Deprecated.
      The values obtained from an attribute exchange.
      boolean isRequired()
      Deprecated.
      The "required" flag for the attribute when used with an authentication request.
      void setCount​(int count)
      Deprecated.
       
      void setRequired​(boolean required)
      Deprecated.
       
      java.lang.String toString()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OpenIDAttribute

        public OpenIDAttribute​(java.lang.String name,
                               java.lang.String type)
        Deprecated.
      • OpenIDAttribute

        public OpenIDAttribute​(java.lang.String name,
                               java.lang.String type,
                               java.util.List<java.lang.String> values)
        Deprecated.
    • Method Detail

      • getName

        public java.lang.String getName()
        Deprecated.
        The attribute name
      • getType

        public java.lang.String getType()
        Deprecated.
        The attribute type Identifier (a URI).
      • isRequired

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

        public void setRequired​(boolean required)
        Deprecated.
      • getCount

        public int getCount()
        Deprecated.
        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)
        Deprecated.
      • getValues

        public java.util.List<java.lang.String> getValues()
        Deprecated.
        The values obtained from an attribute exchange.
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object