Enum AadAuthorizationGrantType
- java.lang.Object
-
- java.lang.Enum<AadAuthorizationGrantType>
-
- com.azure.spring.cloud.autoconfigure.aad.properties.AadAuthorizationGrantType
-
- All Implemented Interfaces:
Serializable,Comparable<AadAuthorizationGrantType>
public enum AadAuthorizationGrantType extends Enum<AadAuthorizationGrantType>
Defines grant types: client_credentials, authorization_code, on_behalf_of, azure_delegated.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTHORIZATION_CODEAuthorization codeAZURE_DELEGATEDAzure delegatedCLIENT_CREDENTIALSClient credentialsON_BEHALF_OFOn behalf of
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValue()Gets the string representation of the enum.booleanisSameGrantType(org.springframework.security.oauth2.core.AuthorizationGrantType grantType)Whether the other grant type is the same as the AAD grant type.static AadAuthorizationGrantTypevalueOf(String name)Returns the enum constant of this type with the specified name.static AadAuthorizationGrantType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLIENT_CREDENTIALS
public static final AadAuthorizationGrantType CLIENT_CREDENTIALS
Client credentials
-
AUTHORIZATION_CODE
public static final AadAuthorizationGrantType AUTHORIZATION_CODE
Authorization code
-
ON_BEHALF_OF
public static final AadAuthorizationGrantType ON_BEHALF_OF
On behalf of
-
AZURE_DELEGATED
public static final AadAuthorizationGrantType AZURE_DELEGATED
Azure delegated
-
-
Method Detail
-
values
public static AadAuthorizationGrantType[] 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 (AadAuthorizationGrantType c : AadAuthorizationGrantType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AadAuthorizationGrantType 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 nameNullPointerException- if the argument is null
-
getValue
public String getValue()
Gets the string representation of the enum.- Returns:
- the string representation of the enum
-
isSameGrantType
public boolean isSameGrantType(org.springframework.security.oauth2.core.AuthorizationGrantType grantType)
Whether the other grant type is the same as the AAD grant type.- Parameters:
grantType- the other grant type- Returns:
- whether the other grant type is the same as the AAD grant type
-
-