Enum Class AuthResponseCodes

java.lang.Object
java.lang.Enum<AuthResponseCodes>
com.skava.auth.constant.AuthResponseCodes
All Implemented Interfaces:
Serializable, Comparable<AuthResponseCodes>, Constable

public enum AuthResponseCodes extends Enum<AuthResponseCodes>
This Enumerator used as response exchange objects from services to controllers for both success and failures.
Version:
$Id: $Id
Author:
Infosys Equinox
  • Enum Constant Details

    • AUTH_SUCCESS

      public static final AuthResponseCodes AUTH_SUCCESS
    • AUTH_FAILURE

      public static final AuthResponseCodes AUTH_FAILURE
    • AUTH_SESSION_CREATED

      public static final AuthResponseCodes AUTH_SESSION_CREATED
    • AUTH_REQUEST_INVALID

      public static final AuthResponseCodes AUTH_REQUEST_INVALID
    • AUTH_UNAUTHORIZED

      public static final AuthResponseCodes AUTH_UNAUTHORIZED
    • AUTH_FORBIDDEN

      public static final AuthResponseCodes AUTH_FORBIDDEN
    • AUTH_SESSION_NOT_AVAILABLE

      public static final AuthResponseCodes AUTH_SESSION_NOT_AVAILABLE
    • AUTH_RESOURCE_NOT_FOUND

      public static final AuthResponseCodes AUTH_RESOURCE_NOT_FOUND
    • AUTH_ROLE_NAME_INVALID

      public static final AuthResponseCodes AUTH_ROLE_NAME_INVALID
    • AUTH_ROLES_ADDED

      public static final AuthResponseCodes AUTH_ROLES_ADDED
    • AUTH_USERROLES_NOTFOUND

      public static final AuthResponseCodes AUTH_USERROLES_NOTFOUND
    • AUTH_USER_ALREAY_MAPPED

      public static final AuthResponseCodes AUTH_USER_ALREAY_MAPPED
    • AUTH_USER_ROLE_NOT_MAPPED

      public static final AuthResponseCodes AUTH_USER_ROLE_NOT_MAPPED
    • AUTH_USER_ID_INVALID

      public static final AuthResponseCodes AUTH_USER_ID_INVALID
    • AUTH_COLLECTION_INVALID

      public static final AuthResponseCodes AUTH_COLLECTION_INVALID
    • AUTH_COLLECTION_PROPERTIES_INVALID

      public static final AuthResponseCodes AUTH_COLLECTION_PROPERTIES_INVALID
    • AUTH_TOKEN_INVALID

      public static final AuthResponseCodes AUTH_TOKEN_INVALID
    • AUTH_ENTITY_CREATION_SUCESS

      public static final AuthResponseCodes AUTH_ENTITY_CREATION_SUCESS
    • AUTH_CATEGORY_INVALID

      public static final AuthResponseCodes AUTH_CATEGORY_INVALID
    • AUTH_BUSINESS_ID_INVALID

      public static final AuthResponseCodes AUTH_BUSINESS_ID_INVALID
    • AUTH_USER_ID_COUNT_EXCEEDED

      public static final AuthResponseCodes AUTH_USER_ID_COUNT_EXCEEDED
    • AUTH_COLLECTION_NAME_INVALID

      public static final AuthResponseCodes AUTH_COLLECTION_NAME_INVALID
    • AUTH_COLLECTION_PROPERTY_NAME_INVALID

      public static final AuthResponseCodes AUTH_COLLECTION_PROPERTY_NAME_INVALID
    • AUTH_COLLECTION_PROPERTY_NOT_AVAILABLE

      public static final AuthResponseCodes AUTH_COLLECTION_PROPERTY_NOT_AVAILABLE
    • AUTH_COLLECTION_ID_INVALID

      public static final AuthResponseCodes AUTH_COLLECTION_ID_INVALID
    • AUTH_USER_ROLE_INVALID

      public static final AuthResponseCodes AUTH_USER_ROLE_INVALID
    • AUTH_ROLE_NOT_AVAILABLE

      public static final AuthResponseCodes AUTH_ROLE_NOT_AVAILABLE
    • AUTH_REFRESH_TOKEN_EXPIRED

      public static final AuthResponseCodes AUTH_REFRESH_TOKEN_EXPIRED
    • AUTH_REFRESH_TOKEN_NOT_VALID

      public static final AuthResponseCodes AUTH_REFRESH_TOKEN_NOT_VALID
    • AUTH_COLLECTION_ALREADY_EXISTS

      public static final AuthResponseCodes AUTH_COLLECTION_ALREADY_EXISTS
    • AUTH_COLLECTION_DESCRIPTION_INVALID

      public static final AuthResponseCodes AUTH_COLLECTION_DESCRIPTION_INVALID
    • AUTH_COLLECTION_DOES_NOT_EXIST

      public static final AuthResponseCodes AUTH_COLLECTION_DOES_NOT_EXIST
    • AUTH_OAUTHCLIENT_CREATE_FAILURE

      public static final AuthResponseCodes AUTH_OAUTHCLIENT_CREATE_FAILURE
    • AUTH_OAUTHCLIENT_NAME_INVALID

      public static final AuthResponseCodes AUTH_OAUTHCLIENT_NAME_INVALID
    • AUTH_OAUTHCLIENT_APPLICATIONTYPE_INVALID

      public static final AuthResponseCodes AUTH_OAUTHCLIENT_APPLICATIONTYPE_INVALID
    • AUTH_OAUTHCLIENT_NOTEXISTS

      public static final AuthResponseCodes AUTH_OAUTHCLIENT_NOTEXISTS
    • AUTH_OAUTHCLIENTS_NOTEXISTS

      public static final AuthResponseCodes AUTH_OAUTHCLIENTS_NOTEXISTS
    • AUTH_OAUTHCLIENT_UPDATE_FAILURE

      public static final AuthResponseCodes AUTH_OAUTHCLIENT_UPDATE_FAILURE
    • AUTH_OAUTHCLIENT_REDIRECTURL_CANNOTBE_EMPTY

      public static final AuthResponseCodes AUTH_OAUTHCLIENT_REDIRECTURL_CANNOTBE_EMPTY
    • AUTH_CLIENT_SECRET_EXPIRED

      public static final AuthResponseCodes AUTH_CLIENT_SECRET_EXPIRED
    • AUTH_CLIENT_AUTHORIZATION_FAILED

      public static final AuthResponseCodes AUTH_CLIENT_AUTHORIZATION_FAILED
    • AUTH_CLIENT_REDIRECT_URI_INVALID

      public static final AuthResponseCodes AUTH_CLIENT_REDIRECT_URI_INVALID
    • AUTH_CLIENT_INVALID_RESPONSE_TYPE

      public static final AuthResponseCodes AUTH_CLIENT_INVALID_RESPONSE_TYPE
    • AUTH_INVALID_SESSIONID_REFRESHTOKEN

      public static final AuthResponseCodes AUTH_INVALID_SESSIONID_REFRESHTOKEN
    • AUTH_CLIENT_SESSION_DELETED

      public static final AuthResponseCodes AUTH_CLIENT_SESSION_DELETED
    • AUTH_CLIENT_ROLE_INVALID

      public static final AuthResponseCodes AUTH_CLIENT_ROLE_INVALID
    • AUTH_CLIENT_ID_INVALID

      public static final AuthResponseCodes AUTH_CLIENT_ID_INVALID
    • AUTH_CLIENTROLES_NOTFOUND

      public static final AuthResponseCodes AUTH_CLIENTROLES_NOTFOUND
    • AUTH_CLIENT_ROLE_DELETED

      public static final AuthResponseCodes AUTH_CLIENT_ROLE_DELETED
    • AUTH_BUSINESS_ID_MISMATCH

      public static final AuthResponseCodes AUTH_BUSINESS_ID_MISMATCH
    • AUTH_FEATURE_ROLE_MAPPING_CREATED_SUCCESS

      public static final AuthResponseCodes AUTH_FEATURE_ROLE_MAPPING_CREATED_SUCCESS
    • AUTH_FEATURE_ROLE_MAPPING_UPDATED_SUCCESS

      public static final AuthResponseCodes AUTH_FEATURE_ROLE_MAPPING_UPDATED_SUCCESS
    • AUTH_FEATURE_ROLE_MAPPING_FOUND

      public static final AuthResponseCodes AUTH_FEATURE_ROLE_MAPPING_FOUND
    • AUTH_FEATURE_ROLE_MAPPING_DELETED_SUCCESS

      public static final AuthResponseCodes AUTH_FEATURE_ROLE_MAPPING_DELETED_SUCCESS
    • AUTH_FEATURESANDPRIVILEGEMAP_CREATED

      public static final AuthResponseCodes AUTH_FEATURESANDPRIVILEGEMAP_CREATED
    • AUTH_FEATURESANDPRIVILEGEMAP_DELETED

      public static final AuthResponseCodes AUTH_FEATURESANDPRIVILEGEMAP_DELETED
    • AUTH_FEATURESANDPRIVILEGEMAP_NOT_FOUND

      public static final AuthResponseCodes AUTH_FEATURESANDPRIVILEGEMAP_NOT_FOUND
    • AUTH_AGGREGATED_ACCESS_SUCCESS

      public static final AuthResponseCodes AUTH_AGGREGATED_ACCESS_SUCCESS
  • Field Details

  • Method Details

    • values

      public static AuthResponseCodes[] 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

      public static AuthResponseCodes valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getMessage

      public static String getMessage(org.springframework.context.MessageSource messageSource, AuthResponseCodes responseCode)
      This method return the localized response message using locale context holder.
      Parameters:
      messageSource - a MessageSource object. a message source to load locale specific response messages.
      responseCode - a AuthResponseCodes object. a response code to load locale specific response.
      Returns:
      a String object. a localized response message.
    • buildResponse

      public Object buildResponse(org.springframework.context.MessageSource messageSource, Object responseBody)
      This method build and return the localized error response as validation error response when response from service is not successful.
      Parameters:
      messageSource - a MessageSource object. a message source for localize the messages.
      responseBody - a Object object. a response body for success
      Returns:
      a Object object. a actual response from the service to the end point if the response is valid else new validation localized error response.