Class ResponseTypeUtils

java.lang.Object
io.gravitee.am.service.utils.ResponseTypeUtils

public class ResponseTypeUtils extends Object
Author:
Alexandre FARIA (contact at alexandrefaria.net), GraviteeSource Team
  • Constructor Details

    • ResponseTypeUtils

      public ResponseTypeUtils()
  • Method Details

    • getSupportedResponseTypes

      public static List<String> getSupportedResponseTypes()
    • isSupportedResponseType

      public static boolean isSupportedResponseType(List<String> responseTypes)
      Throw InvalidClientMetadataException if null, or contains unknown response types.
      Parameters:
      responseTypes - Array of response_type to validate.
    • isSupportedResponseType

      public static boolean isSupportedResponseType(String responseType)
      Throw InvalidClientMetadataException if null or contains unknown response types.
      Parameters:
      responseType - String to response_type validate.
    • applyDefaultResponseType

      public static Client applyDefaultResponseType(Client client)
      Before Dynamic Client Registration feature, there were no response type settings on Access Management UI & API. In order to avoid breaking changes for legacy users, we'll add by default all response type possible according to selected grant_type : authorization_code : add code implicit : add token and id_token
      Parameters:
      client - Client to analyse.
      Returns:
      Client updated Client
    • applyDefaultResponseType

      public static Set<String> applyDefaultResponseType(List<String> grantTypeList)
    • isImplicitFlow

      public static boolean isImplicitFlow(String responseType)
    • isHybridFlow

      public static boolean isHybridFlow(String responseType)
    • requireNonce

      public static boolean requireNonce(String responseType)