Search in sources :

Example 1 with TokenBinder

use of org.wso2.carbon.identity.oauth2.token.bindings.TokenBinder in project identity-inbound-auth-oauth by wso2-extensions.

the class RefreshGrantHandler method validateTokenBindingReference.

private void validateTokenBindingReference(OAuth2AccessTokenReqDTO tokenReqDTO, RefreshTokenValidationDataDO validationDataDO) throws IdentityOAuth2Exception {
    if (StringUtils.isBlank(validationDataDO.getTokenBindingReference()) || NONE.equals(validationDataDO.getTokenBindingReference())) {
        return;
    }
    OAuthAppDO oAuthAppDO;
    try {
        oAuthAppDO = OAuth2Util.getAppInformationByClientId(tokenReqDTO.getClientId());
    } catch (InvalidOAuthClientException e) {
        throw new IdentityOAuth2Exception("Failed load the application with client id: " + tokenReqDTO.getClientId());
    }
    if (StringUtils.isBlank(oAuthAppDO.getTokenBindingType())) {
        return;
    }
    Optional<TokenBinder> tokenBinderOptional = OAuth2ServiceComponentHolder.getInstance().getTokenBinder(oAuthAppDO.getTokenBindingType());
    if (!tokenBinderOptional.isPresent()) {
        throw new IdentityOAuth2Exception("Token binder for the binding type: " + oAuthAppDO.getTokenBindingType() + " is not registered.");
    }
    TokenBinder tokenBinder = tokenBinderOptional.get();
    if ((oAuthAppDO.isTokenBindingValidationEnabled()) && !tokenBinder.isValidTokenBinding(tokenReqDTO, validationDataDO.getTokenBindingReference())) {
        throw new IdentityOAuth2Exception("Invalid token binding value is present in the request.");
    }
}
Also used : OAuthAppDO(org.wso2.carbon.identity.oauth.dao.OAuthAppDO) IdentityOAuth2Exception(org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception) InvalidOAuthClientException(org.wso2.carbon.identity.oauth.common.exception.InvalidOAuthClientException) TokenBinder(org.wso2.carbon.identity.oauth2.token.bindings.TokenBinder)

Example 2 with TokenBinder

use of org.wso2.carbon.identity.oauth2.token.bindings.TokenBinder in project identity-inbound-auth-oauth by wso2-extensions.

the class TokenBindingExpiryEventHandler method getBindingRefFromType.

/**
 * Retrieve the token binding reference from the logout request based on the token binding type that is defined
 * for the oauth application.
 *
 * @param request     logout request
 * @param consumerKey consumer key of the application that user logged out from
 * @param bindingType binding type of the application that user logged out from
 * @return token binding reference
 * @throws IdentityOAuth2Exception if an exception occurs when retrieving the binding reference
 * @throws OAuthSystemException    if an exception occurs when retrieving the binding reference
 */
private String getBindingRefFromType(HttpServletRequest request, String consumerKey, String bindingType) throws IdentityOAuth2Exception, OAuthSystemException {
    if (StringUtils.isBlank(bindingType)) {
        return null;
    }
    Optional<TokenBinder> tokenBinderOptional = OAuth2ServiceComponentHolder.getInstance().getTokenBinder(bindingType);
    if (!tokenBinderOptional.isPresent()) {
        throw new IdentityOAuth2Exception("Token binder for the binding type: " + bindingType + " is not " + "registered.");
    }
    TokenBinder tokenBinder = tokenBinderOptional.get();
    String tokenBindingRef = OAuth2Util.getTokenBindingReference(tokenBinder.getTokenBindingValue(request));
    if (StringUtils.isBlank(tokenBindingRef)) {
        throw new IdentityOAuth2Exception("Token binding reference is null for the application " + consumerKey + " with binding type " + bindingType + ".");
    }
    return tokenBindingRef;
}
Also used : IdentityOAuth2Exception(org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception) TokenBinder(org.wso2.carbon.identity.oauth2.token.bindings.TokenBinder)

Example 3 with TokenBinder

use of org.wso2.carbon.identity.oauth2.token.bindings.TokenBinder in project identity-inbound-auth-oauth by wso2-extensions.

the class AccessTokenIssuer method handleTokenBinding.

/**
 * Handle token binding for the grant type.
 *
 * @param tokenReqDTO  token request DTO.
 * @param grantType    grant type.
 * @param tokReqMsgCtx token request message context.
 * @param oAuthAppDO   oauth application.
 * @throws IdentityOAuth2Exception in case of failure.
 */
private void handleTokenBinding(OAuth2AccessTokenReqDTO tokenReqDTO, String grantType, OAuthTokenReqMessageContext tokReqMsgCtx, OAuthAppDO oAuthAppDO) throws IdentityOAuth2Exception {
    if (StringUtils.isBlank(oAuthAppDO.getTokenBindingType())) {
        tokReqMsgCtx.setTokenBinding(null);
        return;
    }
    Optional<TokenBinder> tokenBinderOptional = OAuth2ServiceComponentHolder.getInstance().getTokenBinder(oAuthAppDO.getTokenBindingType());
    if (!tokenBinderOptional.isPresent()) {
        throw new IdentityOAuth2Exception("Token binder for the binding type: " + oAuthAppDO.getTokenBindingType() + " is not registered.");
    }
    if (REFRESH_TOKEN.equals(grantType)) {
        // Token binding values are already set to the OAuthTokenReqMessageContext.
        return;
    }
    tokReqMsgCtx.setTokenBinding(null);
    TokenBinder tokenBinder = tokenBinderOptional.get();
    if (!tokenBinder.getSupportedGrantTypes().contains(grantType)) {
        return;
    }
    Optional<String> tokenBindingValueOptional = tokenBinder.getTokenBindingValue(tokenReqDTO);
    if (!tokenBindingValueOptional.isPresent()) {
        throw new IdentityOAuth2Exception("Token binding reference cannot be retrieved form the token binder: " + tokenBinder.getBindingType());
    }
    String tokenBindingValue = tokenBindingValueOptional.get();
    tokReqMsgCtx.setTokenBinding(new TokenBinding(tokenBinder.getBindingType(), OAuth2Util.getTokenBindingReference(tokenBindingValue), tokenBindingValue));
}
Also used : TokenBinding(org.wso2.carbon.identity.oauth2.token.bindings.TokenBinding) IdentityOAuth2Exception(org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception) TokenBinder(org.wso2.carbon.identity.oauth2.token.bindings.TokenBinder)

Example 4 with TokenBinder

use of org.wso2.carbon.identity.oauth2.token.bindings.TokenBinder in project identity-inbound-auth-oauth by wso2-extensions.

the class OIDCLogoutServlet method clearTokenBindingElements.

private void clearTokenBindingElements(String clientId, HttpServletRequest request, HttpServletResponse response) {
    if (StringUtils.isBlank(clientId)) {
        log.debug("Logout request received without a client id. " + "So skipping the clearing token binding element.");
        return;
    }
    OAuthAppDO oAuthAppDO;
    try {
        oAuthAppDO = OAuth2Util.getAppInformationByClientId(clientId);
    } catch (IdentityOAuth2Exception e) {
        log.error("Failed to load the app information for the client id: " + clientId, e);
        return;
    } catch (InvalidOAuthClientException e) {
        if (log.isDebugEnabled()) {
            log.debug("The application with client id: " + clientId + " does not exists. This application may be deleted after this session is created.", e);
        }
        return;
    }
    if (StringUtils.isBlank(oAuthAppDO.getTokenBindingType())) {
        return;
    }
    List<TokenBinder> tokenBinders = OIDCSessionManagementComponentServiceHolder.getInstance().getTokenBinders();
    if (tokenBinders.isEmpty()) {
        return;
    }
    tokenBinders.stream().filter(t -> oAuthAppDO.getTokenBindingType().equals(t.getBindingType())).findAny().ifPresent(t -> t.clearTokenBindingElements(request, response));
}
Also used : OAuthAppDO(org.wso2.carbon.identity.oauth.dao.OAuthAppDO) IdentityOAuth2Exception(org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception) InvalidOAuthClientException(org.wso2.carbon.identity.oauth.common.exception.InvalidOAuthClientException) TokenBinder(org.wso2.carbon.identity.oauth2.token.bindings.TokenBinder)

Example 5 with TokenBinder

use of org.wso2.carbon.identity.oauth2.token.bindings.TokenBinder in project identity-inbound-auth-oauth by wso2-extensions.

the class OAuth2AuthzEndpoint method getTokenBinder.

private Optional<TokenBinder> getTokenBinder(String clientId) throws OAuthSystemException {
    OAuthAppDO oAuthAppDO;
    try {
        oAuthAppDO = OAuth2Util.getAppInformationByClientId(clientId);
    } catch (IdentityOAuth2Exception | InvalidOAuthClientException e) {
        throw new OAuthSystemException("Failed to retrieve OAuth application with client id: " + clientId, e);
    }
    if (oAuthAppDO == null || StringUtils.isBlank(oAuthAppDO.getTokenBindingType())) {
        return Optional.empty();
    }
    OAuth2Service oAuth2Service = getOAuth2Service();
    List<TokenBinder> supportedTokenBinders = oAuth2Service.getSupportedTokenBinders();
    if (supportedTokenBinders == null || supportedTokenBinders.isEmpty()) {
        return Optional.empty();
    }
    return supportedTokenBinders.stream().filter(t -> t.getBindingType().equals(oAuthAppDO.getTokenBindingType())).findAny();
}
Also used : StringUtils(org.apache.commons.lang.StringUtils) OAuthServerConfiguration(org.wso2.carbon.identity.oauth.config.OAuthServerConfiguration) Arrays(java.util.Arrays) Produces(javax.ws.rs.Produces) AuthorizationGrantCache(org.wso2.carbon.identity.oauth.cache.AuthorizationGrantCache) Enumeration(java.util.Enumeration) FrameworkConstants(org.wso2.carbon.identity.application.authentication.framework.util.FrameworkConstants) IdentityOAuth2ScopeException(org.wso2.carbon.identity.oauth2.IdentityOAuth2ScopeException) CarbonOAuthAuthzRequest(org.wso2.carbon.identity.oauth2.model.CarbonOAuthAuthzRequest) JSONException(org.json.JSONException) MediaType(javax.ws.rs.core.MediaType) OAuthError(org.apache.oltu.oauth2.common.error.OAuthError) AuthenticationResult(org.wso2.carbon.identity.application.authentication.framework.model.AuthenticationResult) Map(java.util.Map) SessionDataCacheEntry(org.wso2.carbon.identity.oauth.cache.SessionDataCacheEntry) OpenIDConnectClaimFilterImpl(org.wso2.carbon.identity.openidconnect.OpenIDConnectClaimFilterImpl) NONCE(org.wso2.carbon.identity.openidconnect.model.Constants.NONCE) ServiceURLBuilder(org.wso2.carbon.identity.core.ServiceURLBuilder) OpenIDConnectUserRPStore(org.wso2.carbon.identity.oauth.endpoint.util.OpenIDConnectUserRPStore) OIDCRequestObjectUtil(org.wso2.carbon.identity.openidconnect.OIDCRequestObjectUtil) OAuth2Util(org.wso2.carbon.identity.oauth2.util.OAuth2Util) URIBuilder(org.apache.http.client.utils.URIBuilder) AuthenticatorFlowStatus(org.wso2.carbon.identity.application.authentication.framework.AuthenticatorFlowStatus) SCOPE(org.wso2.carbon.identity.openidconnect.model.Constants.SCOPE) InvalidRequestException(org.wso2.carbon.identity.oauth.endpoint.exception.InvalidRequestException) EndpointUtil.validateParams(org.wso2.carbon.identity.oauth.endpoint.util.EndpointUtil.validateParams) Set(java.util.Set) SignedJWT(com.nimbusds.jwt.SignedJWT) StandardCharsets(java.nio.charset.StandardCharsets) InvalidOAuthClientException(org.wso2.carbon.identity.oauth.common.exception.InvalidOAuthClientException) REQUESTED_CLAIMS(org.wso2.carbon.identity.application.authentication.endpoint.util.Constants.REQUESTED_CLAIMS) UserIdNotFoundException(org.wso2.carbon.identity.application.authentication.framework.exception.UserIdNotFoundException) ConsentHandlingFailedException(org.wso2.carbon.identity.oauth.endpoint.exception.ConsentHandlingFailedException) PASSTHROUGH_TO_COMMONAUTH(org.wso2.carbon.identity.oauth.endpoint.state.OAuthAuthorizeState.PASSTHROUGH_TO_COMMONAUTH) LogFactory(org.apache.commons.logging.LogFactory) TENANT_DOMAIN(org.wso2.carbon.identity.application.authentication.framework.util.FrameworkConstants.RequestParams.TENANT_DOMAIN) REQUEST_PARAM_SP(org.wso2.carbon.identity.application.authentication.framework.util.FrameworkConstants.REQUEST_PARAM_SP) RequestedClaim(org.wso2.carbon.identity.openidconnect.model.RequestedClaim) GET(javax.ws.rs.GET) HttpRequestHeaderHandler(org.wso2.carbon.identity.oauth2.model.HttpRequestHeaderHandler) OAuthRequestWrapper(org.wso2.carbon.identity.oauth.endpoint.OAuthRequestWrapper) EndpointUtil.getOAuthServerConfiguration(org.wso2.carbon.identity.oauth.endpoint.util.EndpointUtil.getOAuthServerConfiguration) ArrayList(java.util.ArrayList) InvalidRequestParentException(org.wso2.carbon.identity.oauth.endpoint.exception.InvalidRequestParentException) ClaimMetadataException(org.wso2.carbon.identity.claim.metadata.mgt.exception.ClaimMetadataException) HttpServletRequest(javax.servlet.http.HttpServletRequest) Encode(org.owasp.encoder.Encode) RequestObject(org.wso2.carbon.identity.openidconnect.model.RequestObject) IdentityOAuthAdminException(org.wso2.carbon.identity.oauth.IdentityOAuthAdminException) RequestObjectException(org.wso2.carbon.identity.oauth2.RequestObjectException) IdentityOAuth2Exception(org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception) CommonAuthRequestWrapper(org.wso2.carbon.identity.application.authentication.framework.model.CommonAuthRequestWrapper) IdentityTenantUtil(org.wso2.carbon.identity.core.util.IdentityTenantUtil) LinkedHashSet(java.util.LinkedHashSet) MAX_AGE(org.wso2.carbon.identity.openidconnect.model.Constants.MAX_AGE) Files(java.nio.file.Files) ID_TOKEN_HINT(org.wso2.carbon.identity.openidconnect.model.Constants.ID_TOKEN_HINT) IOException(java.io.IOException) AUTHENTICATION_RESPONSE(org.wso2.carbon.identity.oauth.endpoint.state.OAuthAuthorizeState.AUTHENTICATION_RESPONSE) USER_CLAIMS_CONSENT_ONLY(org.wso2.carbon.identity.application.authentication.endpoint.util.Constants.USER_CLAIMS_CONSENT_ONLY) STATE(org.wso2.carbon.identity.openidconnect.model.Constants.STATE) EndpointUtil.getErrorPageURL(org.wso2.carbon.identity.oauth.endpoint.util.EndpointUtil.getErrorPageURL) OAuthMessage(org.wso2.carbon.identity.oauth.endpoint.message.OAuthMessage) Paths(java.nio.file.Paths) PROMPT(org.wso2.carbon.identity.openidconnect.model.Constants.PROMPT) ServletException(javax.servlet.ServletException) OAuth(org.apache.oltu.oauth2.common.OAuth) SessionDataCacheKey(org.wso2.carbon.identity.oauth.cache.SessionDataCacheKey) URISyntaxException(java.net.URISyntaxException) HttpServletRequestWrapper(javax.servlet.http.HttpServletRequestWrapper) Path(javax.ws.rs.Path) Scanner(java.util.Scanner) AUTH_TIME(org.wso2.carbon.identity.openidconnect.model.Constants.AUTH_TIME) JSONObject(org.json.JSONObject) OIDCConstants(org.wso2.carbon.identity.openidconnect.OIDCConstants) USER_CONSENT_RESPONSE(org.wso2.carbon.identity.oauth.endpoint.state.OAuthAuthorizeState.USER_CONSENT_RESPONSE) OAuth2ErrorCodes(org.wso2.carbon.identity.oauth.common.OAuth2ErrorCodes) Consumes(javax.ws.rs.Consumes) LOGIN_HINT(org.wso2.carbon.identity.openidconnect.model.Constants.LOGIN_HINT) URLBuilderException(org.wso2.carbon.identity.core.URLBuilderException) URI(java.net.URI) ParseException(java.text.ParseException) INITIAL_REQUEST(org.wso2.carbon.identity.oauth.endpoint.state.OAuthAuthorizeState.INITIAL_REQUEST) EndpointUtil.getOAuth2Service(org.wso2.carbon.identity.oauth.endpoint.util.EndpointUtil.getOAuth2Service) OIDCSessionState(org.wso2.carbon.identity.oidc.session.OIDCSessionState) AuthenticationResultCacheEntry(org.wso2.carbon.identity.application.authentication.framework.cache.AuthenticationResultCacheEntry) Context(javax.ws.rs.core.Context) EndpointUtil.retrieveStateForErrorURL(org.wso2.carbon.identity.oauth.endpoint.util.EndpointUtil.retrieveStateForErrorURL) OAuth2Parameters(org.wso2.carbon.identity.oauth2.model.OAuth2Parameters) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) OAuthASResponse(org.apache.oltu.oauth2.as.response.OAuthASResponse) OAuth2AuthorizeRespDTO(org.wso2.carbon.identity.oauth2.dto.OAuth2AuthorizeRespDTO) CommonAuthResponseWrapper(org.wso2.carbon.identity.application.authentication.framework.model.CommonAuthResponseWrapper) UUID(java.util.UUID) ServiceProvider(org.wso2.carbon.identity.application.common.model.ServiceProvider) OIDCSessionManagementUtil(org.wso2.carbon.identity.oidc.session.util.OIDCSessionManagementUtil) List(java.util.List) IdentityConstants(org.wso2.carbon.identity.base.IdentityConstants) HttpHeaders(javax.ws.rs.core.HttpHeaders) OAuth2Service(org.wso2.carbon.identity.oauth2.OAuth2Service) Response(javax.ws.rs.core.Response) OAuthAuthzRequest(org.apache.oltu.oauth2.as.request.OAuthAuthzRequest) Optional(java.util.Optional) CommonAuthenticationHandler(org.wso2.carbon.identity.application.authentication.framework.CommonAuthenticationHandler) SSOConsentServiceException(org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.consent.exception.SSOConsentServiceException) NameValuePair(org.apache.http.NameValuePair) AuthHistory(org.wso2.carbon.identity.application.authentication.framework.context.AuthHistory) FrameworkUtils(org.wso2.carbon.identity.application.authentication.framework.util.FrameworkUtils) OAuth2ClientValidationResponseDTO(org.wso2.carbon.identity.oauth2.dto.OAuth2ClientValidationResponseDTO) UnsupportedEncodingException(java.io.UnsupportedEncodingException) EndpointUtil.getSSOConsentService(org.wso2.carbon.identity.oauth.endpoint.util.EndpointUtil.getSSOConsentService) ServiceProviderProperty(org.wso2.carbon.identity.application.common.model.ServiceProviderProperty) OAuthProblemException(org.apache.oltu.oauth2.common.exception.OAuthProblemException) REDIRECT_URI(org.wso2.carbon.identity.oauth.common.OAuthConstants.OAuth20Params.REDIRECT_URI) SessionContext(org.wso2.carbon.identity.application.authentication.framework.context.SessionContext) OAuthAppDO(org.wso2.carbon.identity.oauth.dao.OAuthAppDO) HashMap(java.util.HashMap) EndpointUtil(org.wso2.carbon.identity.oauth.endpoint.util.EndpointUtil) Claim(org.wso2.carbon.identity.application.common.model.Claim) HashSet(java.util.HashSet) CarbonUtils(org.wso2.carbon.utils.CarbonUtils) ClaimMapping(org.wso2.carbon.identity.application.common.model.ClaimMapping) CollectionUtils(org.apache.commons.collections.CollectionUtils) OAuthResponse(org.apache.oltu.oauth2.common.message.OAuthResponse) ExternalClaim(org.wso2.carbon.identity.claim.metadata.mgt.model.ExternalClaim) LoggerUtils(org.wso2.carbon.identity.central.log.mgt.utils.LoggerUtils) OAuthErrorDTO(org.wso2.carbon.identity.oauth.dto.OAuthErrorDTO) ClaimMetaData(org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.consent.ClaimMetaData) SessionDataCache(org.wso2.carbon.identity.oauth.cache.SessionDataCache) Cookie(javax.servlet.http.Cookie) ConsentClaimsData(org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.consent.ConsentClaimsData) UUIDGenerator(org.wso2.carbon.registry.core.utils.UUIDGenerator) EndpointUtil.getLoginPageURL(org.wso2.carbon.identity.oauth.endpoint.util.EndpointUtil.getLoginPageURL) DISPLAY(org.wso2.carbon.identity.openidconnect.model.Constants.DISPLAY) IdentityOAuth2ClientException(org.wso2.carbon.identity.oauth2.IdentityOAuth2ClientException) POST(javax.ws.rs.POST) MapUtils(org.apache.commons.collections.MapUtils) OAuthConstants(org.wso2.carbon.identity.oauth.common.OAuthConstants) HttpServletResponse(javax.servlet.http.HttpServletResponse) OAuth2AuthorizeReqDTO(org.wso2.carbon.identity.oauth2.dto.OAuth2AuthorizeReqDTO) ClaimMetadataHandler(org.wso2.carbon.identity.claim.metadata.mgt.ClaimMetadataHandler) AuthorizationGrantCacheEntry(org.wso2.carbon.identity.oauth.cache.AuthorizationGrantCacheEntry) AuthorizationGrantCacheKey(org.wso2.carbon.identity.oauth.cache.AuthorizationGrantCacheKey) MANDATORY_CLAIMS(org.wso2.carbon.identity.application.authentication.endpoint.util.Constants.MANDATORY_CLAIMS) TimeUnit(java.util.concurrent.TimeUnit) Consumer(java.util.function.Consumer) MultivaluedMap(javax.ws.rs.core.MultivaluedMap) TokenBinder(org.wso2.carbon.identity.oauth2.token.bindings.TokenBinder) URLEncoder(java.net.URLEncoder) AuthenticatedUser(org.wso2.carbon.identity.application.authentication.framework.model.AuthenticatedUser) OAuthSystemException(org.apache.oltu.oauth2.common.exception.OAuthSystemException) StringJoiner(java.util.StringJoiner) IdentityUtil(org.wso2.carbon.identity.core.util.IdentityUtil) Log(org.apache.commons.logging.Log) DigestUtils(org.apache.commons.codec.digest.DigestUtils) Collections(java.util.Collections) ArrayUtils(org.apache.commons.lang.ArrayUtils) EndpointUtil.getOAuth2Service(org.wso2.carbon.identity.oauth.endpoint.util.EndpointUtil.getOAuth2Service) OAuth2Service(org.wso2.carbon.identity.oauth2.OAuth2Service) OAuthAppDO(org.wso2.carbon.identity.oauth.dao.OAuthAppDO) IdentityOAuth2Exception(org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception) OAuthSystemException(org.apache.oltu.oauth2.common.exception.OAuthSystemException) InvalidOAuthClientException(org.wso2.carbon.identity.oauth.common.exception.InvalidOAuthClientException) TokenBinder(org.wso2.carbon.identity.oauth2.token.bindings.TokenBinder)

Aggregations

TokenBinder (org.wso2.carbon.identity.oauth2.token.bindings.TokenBinder)6 IdentityOAuth2Exception (org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception)5 InvalidOAuthClientException (org.wso2.carbon.identity.oauth.common.exception.InvalidOAuthClientException)3 OAuthAppDO (org.wso2.carbon.identity.oauth.dao.OAuthAppDO)3 HashMap (java.util.HashMap)2 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)2 OAuthASResponse (org.apache.oltu.oauth2.as.response.OAuthASResponse)2 OAuthResponse (org.apache.oltu.oauth2.common.message.OAuthResponse)2 JSONObject (org.json.JSONObject)2 RequestObject (org.wso2.carbon.identity.openidconnect.model.RequestObject)2 SignedJWT (com.nimbusds.jwt.SignedJWT)1 IOException (java.io.IOException)1 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1 URI (java.net.URI)1 URISyntaxException (java.net.URISyntaxException)1 URLEncoder (java.net.URLEncoder)1 StandardCharsets (java.nio.charset.StandardCharsets)1 Files (java.nio.file.Files)1 Paths (java.nio.file.Paths)1 ParseException (java.text.ParseException)1