java.lang.Object
java.lang.Enum<IuAuthorizationClient.AuthMethod>
edu.iu.auth.config.IuAuthorizationClient.AuthMethod
- All Implemented Interfaces:
Serializable
,Comparable<IuAuthorizationClient.AuthMethod>
,Constable
- Enclosing interface:
IuAuthorizationClient
Enumerate token endpoint authentication methods types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.Most container standards require support for basic authentication, and Basic auth is supported by current HTTP standards.Direct use of an access token via Authorization Bearer header.Deprecated.OAuth 2.0 requires support for client_secret password, and Basic auth is supported by current HTTP standards.Bearer token w/ use of client secret as HMAC key for signing a JWT assertion.Deprecated.OAuth 2.0 requires support for client_secret POST.Bearer token w/ use of X509 certificate to demonstrate proof of private key possession via JWT assertion. -
Field Summary
FieldsModifier and TypeFieldDescriptionJSON type adapter.final String
Standard parameter value.final boolean
True if IP restrictions are required in order to use this authentication method.final Duration
Designates the minimum duration to allow for client configuration to expire with the auth method enabled. -
Method Summary
Modifier and TypeMethodDescriptionGets an authentication method from standard parameter value.Returns the enum constant of this class with the specified name.static IuAuthorizationClient.AuthMethod[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BASIC
Deprecated.Most container standards require support for basic authentication, and Basic auth is supported by current HTTP standards. However, password authentication is insecure and should not be used in production. ThisIuAuthorizationClient.AuthMethod
is useful for development and test environments and will be retained long term, but is deprecated to discourage direct use by enterprise applications.Direct use of client secret as password at API endpoint via Authorization Basic header. -
BEARER
Direct use of an access token via Authorization Bearer header. -
CLIENT_SECRET_BASIC
Deprecated.OAuth 2.0 requires support for client_secret password, and Basic auth is supported by current HTTP standards. However, password authentication is insecure and should not be used in production. ThisIuAuthorizationClient.AuthMethod
is useful for development and test environments and will be retained long term, but is deprecated to discourage direct use by enterprise applications.Bearer token w/ use of client secret as password at token endpoint via Authorization Basic header. -
CLIENT_SECRET_POST
Deprecated.OAuth 2.0 requires support for client_secret POST. However, password authentication is insecure and should not be used in production. ThisIuAuthorizationClient.AuthMethod
is useful for development and test environments and will be retained long term, but is deprecated to discourage direct use by enterprise applications.Bearer token w/ use of client secret as password at token endpoint via POST parameter. -
CLIENT_SECRET_JWT
Bearer token w/ use of client secret as HMAC key for signing a JWT assertion. -
PRIVATE_KEY_JWT
Bearer token w/ use of X509 certificate to demonstrate proof of private key possession via JWT assertion.
-
-
Field Details
-
JSON
JSON type adapter. -
parameterValue
Standard parameter value. -
ttlPolicy
Designates the minimum duration to allow for client configuration to expire with the auth method enabled. -
requiresIpAllow
public final boolean requiresIpAllowTrue if IP restrictions are required in order to use this authentication method.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
from
Gets an authentication method from standard parameter value.- Parameters:
parameterValue
- standard parameter value- Returns:
IuAuthorizationClient.AuthMethod
-