Enum CloudFoundryAuthorizationException.Reason
- java.lang.Object
- java.lang.Enum<CloudFoundryAuthorizationException.Reason>
- org.springframework.boot.actuate.autoconfigure.cloudfoundry.CloudFoundryAuthorizationException.Reason
- All Implemented Interfaces:
Serializable
,Comparable<CloudFoundryAuthorizationException.Reason>
- Enclosing class:
- CloudFoundryAuthorizationException
public static enum CloudFoundryAuthorizationException.Reason extends Enum<CloudFoundryAuthorizationException.Reason>
Reasons why the exception can be thrown.
Enum Constant Summary
Enum Constants Enum Constant Description ACCESS_DENIED
INVALID_AUDIENCE
INVALID_ISSUER
INVALID_KEY_ID
INVALID_SIGNATURE
INVALID_TOKEN
MISSING_AUTHORIZATION
SERVICE_UNAVAILABLE
TOKEN_EXPIRED
UNSUPPORTED_TOKEN_SIGNING_ALGORITHM
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.HttpStatus
getStatus()
static CloudFoundryAuthorizationException.Reason
valueOf(String name)
Returns the enum constant of this type with the specified name.static CloudFoundryAuthorizationException.Reason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Detail
ACCESS_DENIED
public static final CloudFoundryAuthorizationException.Reason ACCESS_DENIED
INVALID_AUDIENCE
public static final CloudFoundryAuthorizationException.Reason INVALID_AUDIENCE
INVALID_ISSUER
public static final CloudFoundryAuthorizationException.Reason INVALID_ISSUER
INVALID_KEY_ID
public static final CloudFoundryAuthorizationException.Reason INVALID_KEY_ID
INVALID_SIGNATURE
public static final CloudFoundryAuthorizationException.Reason INVALID_SIGNATURE
INVALID_TOKEN
public static final CloudFoundryAuthorizationException.Reason INVALID_TOKEN
MISSING_AUTHORIZATION
public static final CloudFoundryAuthorizationException.Reason MISSING_AUTHORIZATION
TOKEN_EXPIRED
public static final CloudFoundryAuthorizationException.Reason TOKEN_EXPIRED
UNSUPPORTED_TOKEN_SIGNING_ALGORITHM
public static final CloudFoundryAuthorizationException.Reason UNSUPPORTED_TOKEN_SIGNING_ALGORITHM
SERVICE_UNAVAILABLE
public static final CloudFoundryAuthorizationException.Reason SERVICE_UNAVAILABLE
Method Detail
values
public static CloudFoundryAuthorizationException.Reason[] 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 (CloudFoundryAuthorizationException.Reason c : CloudFoundryAuthorizationException.Reason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static CloudFoundryAuthorizationException.Reason 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
getStatus
public org.springframework.http.HttpStatus getStatus()