Enum OAuthTokenField

  • All Implemented Interfaces:
    Serializable, Comparable<OAuthTokenField>

    public enum OAuthTokenField
    extends Enum<OAuthTokenField>
    The OAuthTokenField provides a mapping between known OAuth fields and the LDAP Attributes that they map to.

    This class, like all other Token Field classes references the CoreTokenField fields. It goes one stage further by mapping OAuth attribute names to the corresponding CoreTokenField attributes.

    This class should only list mappings for token fields that should be queryable in the CTS. Other token fields will be stored automatically in the CTS blob.

    • Method Detail

      • values

        public static OAuthTokenField[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (OAuthTokenField c : OAuthTokenField.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static OAuthTokenField valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getField

        public CoreTokenField getField()
        Returns:
        The CoreTokenField that this OAuthTokenField is mapped to.
      • getOAuthField

        public String getOAuthField()
        Returns:
        The OAuthField name.
      • getField

        public static OAuthTokenField getField​(String value)
        Provides a mechanism for getting the OAuthTokenField from a given OAuth field name.
        Parameters:
        value - The value to use when matching against the OAuthTokenField.
        Returns:
        Returns the OAuthTokenField for the named value.
        Throws:
        IllegalArgumentException - If the string did not match any OAuthTokenField.