Enum AuthenticationMethod

java.lang.Object
java.lang.Enum<AuthenticationMethod>
io.jans.as.model.common.AuthenticationMethod
All Implemented Interfaces:
Serializable, Comparable<AuthenticationMethod>, java.lang.constant.Constable

public enum AuthenticationMethod extends Enum<AuthenticationMethod>
Author:
Javier Rojas Blum Date: 03.23.2012
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Authenticates client by access token.
    Clients in possession of a client password authenticate with the Authorization Server using HTTP Basic authentication scheme.
    Clients in possession of a client password create a JWT using the HMAC-SHA algorithm.
    Clients in possession of a client password authenticate with the Authorization Server by including the client credentials in the request body.
    The Client does not authenticate itself at the Token Endpoint, either because it uses only the Implicit Flow (and so does not use the Token Endpoint) or because it is a Public Client with no Client Secret or other authentication mechanism.
    Clients that have registered a public key sign a JWT using the RSA algorithm if a RSA key was registered or the ECDSA algorithm if an Elliptic Curve key was registered.
    Indicates that client authentication to the authorization server will occur using mutual TLS with the client utilizing a self- signed certificate.
    Indicates that client authentication to the authorization server will occur with mutual TLS utilizing the PKI method of associating a certificate to a client.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Returns the corresponding AuthenticationMethod for an authentication method parameter.
    Returns a string representation of the object.
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • CLIENT_SECRET_BASIC

      public static final AuthenticationMethod CLIENT_SECRET_BASIC
      Clients in possession of a client password authenticate with the Authorization Server using HTTP Basic authentication scheme. Default one if not client authentication is specified.
    • CLIENT_SECRET_POST

      public static final AuthenticationMethod CLIENT_SECRET_POST
      Clients in possession of a client password authenticate with the Authorization Server by including the client credentials in the request body.
    • CLIENT_SECRET_JWT

      public static final AuthenticationMethod CLIENT_SECRET_JWT
      Clients in possession of a client password create a JWT using the HMAC-SHA algorithm. The HMAC (Hash-based Message Authentication Code) is calculated using the client_secret as the shared key.
    • PRIVATE_KEY_JWT

      public static final AuthenticationMethod PRIVATE_KEY_JWT
      Clients that have registered a public key sign a JWT using the RSA algorithm if a RSA key was registered or the ECDSA algorithm if an Elliptic Curve key was registered.
    • ACCESS_TOKEN

      public static final AuthenticationMethod ACCESS_TOKEN
      Authenticates client by access token.
    • TLS_CLIENT_AUTH

      public static final AuthenticationMethod TLS_CLIENT_AUTH
      Indicates that client authentication to the authorization server will occur with mutual TLS utilizing the PKI method of associating a certificate to a client.
    • SELF_SIGNED_TLS_CLIENT_AUTH

      public static final AuthenticationMethod SELF_SIGNED_TLS_CLIENT_AUTH
      Indicates that client authentication to the authorization server will occur using mutual TLS with the client utilizing a self- signed certificate.
    • NONE

      public static final AuthenticationMethod NONE
      The Client does not authenticate itself at the Token Endpoint, either because it uses only the Implicit Flow (and so does not use the Token Endpoint) or because it is a Public Client with no Client Secret or other authentication mechanism.
  • Method Details

    • values

      public static AuthenticationMethod[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AuthenticationMethod 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
    • fromString

      public static AuthenticationMethod fromString(String param)
      Returns the corresponding AuthenticationMethod for an authentication method parameter.
      Parameters:
      param - The parameter.
      Returns:
      The corresponding authentication method if found, otherwise null.
    • fromList

      public static List<AuthenticationMethod> fromList(List<String> list)
    • toString

      public String toString()
      Returns a string representation of the object. In this case the parameter name for the authentication method parameter.
      Overrides:
      toString in class Enum<AuthenticationMethod>