Package io.gravitee.am.service.utils
Class ResponseTypeUtils
java.lang.Object
io.gravitee.am.service.utils.ResponseTypeUtils
- Author:
- Alexandre FARIA (contact at alexandrefaria.net), GraviteeSource Team
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientapplyDefaultResponseType(Client client) Before Dynamic Client Registration feature, there were no response type settings on Access Management UI & API.applyDefaultResponseType(List<String> grantTypeList) static booleanisHybridFlow(String responseType) static booleanisImplicitFlow(String responseType) static booleanisSupportedResponseType(String responseType) Throw InvalidClientMetadataException if null or contains unknown response types.static booleanisSupportedResponseType(List<String> responseTypes) Throw InvalidClientMetadataException if null, or contains unknown response types.static booleanrequireNonce(String responseType)
-
Constructor Details
-
ResponseTypeUtils
public ResponseTypeUtils()
-
-
Method Details
-
getSupportedResponseTypes
-
isSupportedResponseType
Throw InvalidClientMetadataException if null, or contains unknown response types.- Parameters:
responseTypes- Array of response_type to validate.
-
isSupportedResponseType
Throw InvalidClientMetadataException if null or contains unknown response types.- Parameters:
responseType- String to response_type validate.
-
applyDefaultResponseType
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
-
isImplicitFlow
-
isHybridFlow
-
requireNonce
-