All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sh.ory.hydra.api.AdminApi Maven / Gradle / Ivy

/*
 * Ory Oathkeeper API
 * Documentation for all of Ory Oathkeeper's APIs. 
 *
 * The version of the OpenAPI document: v1.11.6
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package sh.ory.hydra.api;

import sh.ory.hydra.ApiCallback;
import sh.ory.hydra.ApiClient;
import sh.ory.hydra.ApiException;
import sh.ory.hydra.ApiResponse;
import sh.ory.hydra.Configuration;
import sh.ory.hydra.Pair;
import sh.ory.hydra.ProgressRequestBody;
import sh.ory.hydra.ProgressResponseBody;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import sh.ory.hydra.model.AcceptConsentRequest;
import sh.ory.hydra.model.AcceptLoginRequest;
import sh.ory.hydra.model.CompletedRequest;
import sh.ory.hydra.model.ConsentRequest;
import sh.ory.hydra.model.FlushInactiveOAuth2TokensRequest;
import sh.ory.hydra.model.GenericError;
import sh.ory.hydra.model.JSONWebKey;
import sh.ory.hydra.model.JSONWebKeySet;
import sh.ory.hydra.model.JsonError;
import sh.ory.hydra.model.JsonWebKeySetGeneratorRequest;
import sh.ory.hydra.model.LoginRequest;
import sh.ory.hydra.model.LogoutRequest;
import sh.ory.hydra.model.OAuth2Client;
import sh.ory.hydra.model.OAuth2TokenIntrospection;
import sh.ory.hydra.model.PatchDocument;
import sh.ory.hydra.model.PreviousConsentSession;
import sh.ory.hydra.model.RejectRequest;
import sh.ory.hydra.model.RequestWasHandledResponse;
import sh.ory.hydra.model.TrustJwtGrantIssuerBody;
import sh.ory.hydra.model.TrustedJwtGrantIssuer;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class AdminApi {
    private ApiClient localVarApiClient;
    private int localHostIndex;
    private String localCustomBaseUrl;

    public AdminApi() {
        this(Configuration.getDefaultApiClient());
    }

    public AdminApi(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

    public void setApiClient(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    public int getHostIndex() {
        return localHostIndex;
    }

    public void setHostIndex(int hostIndex) {
        this.localHostIndex = hostIndex;
    }

    public String getCustomBaseUrl() {
        return localCustomBaseUrl;
    }

    public void setCustomBaseUrl(String customBaseUrl) {
        this.localCustomBaseUrl = customBaseUrl;
    }

    /**
     * Build call for acceptConsentRequest
     * @param consentChallenge  (required)
     * @param acceptConsentRequest  (optional)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     
Status Code Description Response Headers
200 completedRequest -
404 jsonError -
500 jsonError -
*/ public okhttp3.Call acceptConsentRequestCall(String consentChallenge, AcceptConsentRequest acceptConsentRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = acceptConsentRequest; // create path and map variables String localVarPath = "/oauth2/auth/requests/consent/accept"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (consentChallenge != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("consent_challenge", consentChallenge)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call acceptConsentRequestValidateBeforeCall(String consentChallenge, AcceptConsentRequest acceptConsentRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'consentChallenge' is set if (consentChallenge == null) { throw new ApiException("Missing the required parameter 'consentChallenge' when calling acceptConsentRequest(Async)"); } okhttp3.Call localVarCall = acceptConsentRequestCall(consentChallenge, acceptConsentRequest, _callback); return localVarCall; } /** * Accept a Consent Request * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider to authenticate the subject and then tell ORY Hydra now about it. If the subject authenticated, he/she must now be asked if the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject's behalf. The consent provider which handles this request and is a web app implemented and hosted by you. It shows a subject interface which asks the subject to grant or deny the client access to the requested scope (\"Application my-dropbox-app wants write access to all your private files\"). The consent challenge is appended to the consent provider's URL to which the subject's user-agent (browser) is redirected to. The consent provider uses that challenge to fetch information on the OAuth2 request and then tells ORY Hydra if the subject accepted or rejected the request. This endpoint tells ORY Hydra that the subject has authorized the OAuth 2.0 client to access resources on his/her behalf. The consent provider includes additional information, such as session data for access and ID tokens, and if the consent request should be used as basis for future requests. The response contains a redirect URL which the consent provider should redirect the user-agent to. * @param consentChallenge (required) * @param acceptConsentRequest (optional) * @return CompletedRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 completedRequest -
404 jsonError -
500 jsonError -
*/ public CompletedRequest acceptConsentRequest(String consentChallenge, AcceptConsentRequest acceptConsentRequest) throws ApiException { ApiResponse localVarResp = acceptConsentRequestWithHttpInfo(consentChallenge, acceptConsentRequest); return localVarResp.getData(); } /** * Accept a Consent Request * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider to authenticate the subject and then tell ORY Hydra now about it. If the subject authenticated, he/she must now be asked if the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject's behalf. The consent provider which handles this request and is a web app implemented and hosted by you. It shows a subject interface which asks the subject to grant or deny the client access to the requested scope (\"Application my-dropbox-app wants write access to all your private files\"). The consent challenge is appended to the consent provider's URL to which the subject's user-agent (browser) is redirected to. The consent provider uses that challenge to fetch information on the OAuth2 request and then tells ORY Hydra if the subject accepted or rejected the request. This endpoint tells ORY Hydra that the subject has authorized the OAuth 2.0 client to access resources on his/her behalf. The consent provider includes additional information, such as session data for access and ID tokens, and if the consent request should be used as basis for future requests. The response contains a redirect URL which the consent provider should redirect the user-agent to. * @param consentChallenge (required) * @param acceptConsentRequest (optional) * @return ApiResponse<CompletedRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 completedRequest -
404 jsonError -
500 jsonError -
*/ public ApiResponse acceptConsentRequestWithHttpInfo(String consentChallenge, AcceptConsentRequest acceptConsentRequest) throws ApiException { okhttp3.Call localVarCall = acceptConsentRequestValidateBeforeCall(consentChallenge, acceptConsentRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Accept a Consent Request (asynchronously) * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider to authenticate the subject and then tell ORY Hydra now about it. If the subject authenticated, he/she must now be asked if the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject's behalf. The consent provider which handles this request and is a web app implemented and hosted by you. It shows a subject interface which asks the subject to grant or deny the client access to the requested scope (\"Application my-dropbox-app wants write access to all your private files\"). The consent challenge is appended to the consent provider's URL to which the subject's user-agent (browser) is redirected to. The consent provider uses that challenge to fetch information on the OAuth2 request and then tells ORY Hydra if the subject accepted or rejected the request. This endpoint tells ORY Hydra that the subject has authorized the OAuth 2.0 client to access resources on his/her behalf. The consent provider includes additional information, such as session data for access and ID tokens, and if the consent request should be used as basis for future requests. The response contains a redirect URL which the consent provider should redirect the user-agent to. * @param consentChallenge (required) * @param acceptConsentRequest (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 completedRequest -
404 jsonError -
500 jsonError -
*/ public okhttp3.Call acceptConsentRequestAsync(String consentChallenge, AcceptConsentRequest acceptConsentRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = acceptConsentRequestValidateBeforeCall(consentChallenge, acceptConsentRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for acceptLoginRequest * @param loginChallenge (required) * @param acceptLoginRequest (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 completedRequest -
400 jsonError -
401 jsonError -
404 jsonError -
500 jsonError -
*/ public okhttp3.Call acceptLoginRequestCall(String loginChallenge, AcceptLoginRequest acceptLoginRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = acceptLoginRequest; // create path and map variables String localVarPath = "/oauth2/auth/requests/login/accept"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (loginChallenge != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("login_challenge", loginChallenge)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call acceptLoginRequestValidateBeforeCall(String loginChallenge, AcceptLoginRequest acceptLoginRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loginChallenge' is set if (loginChallenge == null) { throw new ApiException("Missing the required parameter 'loginChallenge' when calling acceptLoginRequest(Async)"); } okhttp3.Call localVarCall = acceptLoginRequestCall(loginChallenge, acceptLoginRequest, _callback); return localVarCall; } /** * Accept a Login Request * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider (sometimes called \"identity provider\") to authenticate the subject and then tell ORY Hydra now about it. The login provider is an web-app you write and host, and it must be able to authenticate (\"show the subject a login screen\") a subject (in OAuth2 the proper name for subject is \"resource owner\"). The authentication challenge is appended to the login provider URL to which the subject's user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. This endpoint tells ORY Hydra that the subject has successfully authenticated and includes additional information such as the subject's ID and if ORY Hydra should remember the subject's subject agent for future authentication attempts by setting a cookie. The response contains a redirect URL which the login provider should redirect the user-agent to. * @param loginChallenge (required) * @param acceptLoginRequest (optional) * @return CompletedRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 completedRequest -
400 jsonError -
401 jsonError -
404 jsonError -
500 jsonError -
*/ public CompletedRequest acceptLoginRequest(String loginChallenge, AcceptLoginRequest acceptLoginRequest) throws ApiException { ApiResponse localVarResp = acceptLoginRequestWithHttpInfo(loginChallenge, acceptLoginRequest); return localVarResp.getData(); } /** * Accept a Login Request * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider (sometimes called \"identity provider\") to authenticate the subject and then tell ORY Hydra now about it. The login provider is an web-app you write and host, and it must be able to authenticate (\"show the subject a login screen\") a subject (in OAuth2 the proper name for subject is \"resource owner\"). The authentication challenge is appended to the login provider URL to which the subject's user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. This endpoint tells ORY Hydra that the subject has successfully authenticated and includes additional information such as the subject's ID and if ORY Hydra should remember the subject's subject agent for future authentication attempts by setting a cookie. The response contains a redirect URL which the login provider should redirect the user-agent to. * @param loginChallenge (required) * @param acceptLoginRequest (optional) * @return ApiResponse<CompletedRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 completedRequest -
400 jsonError -
401 jsonError -
404 jsonError -
500 jsonError -
*/ public ApiResponse acceptLoginRequestWithHttpInfo(String loginChallenge, AcceptLoginRequest acceptLoginRequest) throws ApiException { okhttp3.Call localVarCall = acceptLoginRequestValidateBeforeCall(loginChallenge, acceptLoginRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Accept a Login Request (asynchronously) * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider (sometimes called \"identity provider\") to authenticate the subject and then tell ORY Hydra now about it. The login provider is an web-app you write and host, and it must be able to authenticate (\"show the subject a login screen\") a subject (in OAuth2 the proper name for subject is \"resource owner\"). The authentication challenge is appended to the login provider URL to which the subject's user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. This endpoint tells ORY Hydra that the subject has successfully authenticated and includes additional information such as the subject's ID and if ORY Hydra should remember the subject's subject agent for future authentication attempts by setting a cookie. The response contains a redirect URL which the login provider should redirect the user-agent to. * @param loginChallenge (required) * @param acceptLoginRequest (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 completedRequest -
400 jsonError -
401 jsonError -
404 jsonError -
500 jsonError -
*/ public okhttp3.Call acceptLoginRequestAsync(String loginChallenge, AcceptLoginRequest acceptLoginRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = acceptLoginRequestValidateBeforeCall(loginChallenge, acceptLoginRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for acceptLogoutRequest * @param logoutChallenge (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 completedRequest -
404 jsonError -
500 jsonError -
*/ public okhttp3.Call acceptLogoutRequestCall(String logoutChallenge, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/oauth2/auth/requests/logout/accept"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (logoutChallenge != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("logout_challenge", logoutChallenge)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call acceptLogoutRequestValidateBeforeCall(String logoutChallenge, final ApiCallback _callback) throws ApiException { // verify the required parameter 'logoutChallenge' is set if (logoutChallenge == null) { throw new ApiException("Missing the required parameter 'logoutChallenge' when calling acceptLogoutRequest(Async)"); } okhttp3.Call localVarCall = acceptLogoutRequestCall(logoutChallenge, _callback); return localVarCall; } /** * Accept a Logout Request * When a user or an application requests ORY Hydra to log out a user, this endpoint is used to confirm that logout request. No body is required. The response contains a redirect URL which the consent provider should redirect the user-agent to. * @param logoutChallenge (required) * @return CompletedRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 completedRequest -
404 jsonError -
500 jsonError -
*/ public CompletedRequest acceptLogoutRequest(String logoutChallenge) throws ApiException { ApiResponse localVarResp = acceptLogoutRequestWithHttpInfo(logoutChallenge); return localVarResp.getData(); } /** * Accept a Logout Request * When a user or an application requests ORY Hydra to log out a user, this endpoint is used to confirm that logout request. No body is required. The response contains a redirect URL which the consent provider should redirect the user-agent to. * @param logoutChallenge (required) * @return ApiResponse<CompletedRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 completedRequest -
404 jsonError -
500 jsonError -
*/ public ApiResponse acceptLogoutRequestWithHttpInfo(String logoutChallenge) throws ApiException { okhttp3.Call localVarCall = acceptLogoutRequestValidateBeforeCall(logoutChallenge, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Accept a Logout Request (asynchronously) * When a user or an application requests ORY Hydra to log out a user, this endpoint is used to confirm that logout request. No body is required. The response contains a redirect URL which the consent provider should redirect the user-agent to. * @param logoutChallenge (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 completedRequest -
404 jsonError -
500 jsonError -
*/ public okhttp3.Call acceptLogoutRequestAsync(String logoutChallenge, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = acceptLogoutRequestValidateBeforeCall(logoutChallenge, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for createJsonWebKeySet * @param set The set (required) * @param jsonWebKeySetGeneratorRequest (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
201 JSONWebKeySet -
401 jsonError -
403 jsonError -
500 jsonError -
*/ public okhttp3.Call createJsonWebKeySetCall(String set, JsonWebKeySetGeneratorRequest jsonWebKeySetGeneratorRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = jsonWebKeySetGeneratorRequest; // create path and map variables String localVarPath = "/keys/{set}" .replaceAll("\\{" + "set" + "\\}", localVarApiClient.escapeString(set.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createJsonWebKeySetValidateBeforeCall(String set, JsonWebKeySetGeneratorRequest jsonWebKeySetGeneratorRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'set' is set if (set == null) { throw new ApiException("Missing the required parameter 'set' when calling createJsonWebKeySet(Async)"); } okhttp3.Call localVarCall = createJsonWebKeySetCall(set, jsonWebKeySetGeneratorRequest, _callback); return localVarCall; } /** * Generate a New JSON Web Key * This endpoint is capable of generating JSON Web Key Sets for you. There a different strategies available, such as symmetric cryptographic keys (HS256, HS512) and asymetric cryptographic keys (RS256, ECDSA). If the specified JSON Web Key Set does not exist, it will be created. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. * @param set The set (required) * @param jsonWebKeySetGeneratorRequest (optional) * @return JSONWebKeySet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 JSONWebKeySet -
401 jsonError -
403 jsonError -
500 jsonError -
*/ public JSONWebKeySet createJsonWebKeySet(String set, JsonWebKeySetGeneratorRequest jsonWebKeySetGeneratorRequest) throws ApiException { ApiResponse localVarResp = createJsonWebKeySetWithHttpInfo(set, jsonWebKeySetGeneratorRequest); return localVarResp.getData(); } /** * Generate a New JSON Web Key * This endpoint is capable of generating JSON Web Key Sets for you. There a different strategies available, such as symmetric cryptographic keys (HS256, HS512) and asymetric cryptographic keys (RS256, ECDSA). If the specified JSON Web Key Set does not exist, it will be created. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. * @param set The set (required) * @param jsonWebKeySetGeneratorRequest (optional) * @return ApiResponse<JSONWebKeySet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 JSONWebKeySet -
401 jsonError -
403 jsonError -
500 jsonError -
*/ public ApiResponse createJsonWebKeySetWithHttpInfo(String set, JsonWebKeySetGeneratorRequest jsonWebKeySetGeneratorRequest) throws ApiException { okhttp3.Call localVarCall = createJsonWebKeySetValidateBeforeCall(set, jsonWebKeySetGeneratorRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Generate a New JSON Web Key (asynchronously) * This endpoint is capable of generating JSON Web Key Sets for you. There a different strategies available, such as symmetric cryptographic keys (HS256, HS512) and asymetric cryptographic keys (RS256, ECDSA). If the specified JSON Web Key Set does not exist, it will be created. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. * @param set The set (required) * @param jsonWebKeySetGeneratorRequest (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
201 JSONWebKeySet -
401 jsonError -
403 jsonError -
500 jsonError -
*/ public okhttp3.Call createJsonWebKeySetAsync(String set, JsonWebKeySetGeneratorRequest jsonWebKeySetGeneratorRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createJsonWebKeySetValidateBeforeCall(set, jsonWebKeySetGeneratorRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for createOAuth2Client * @param oauth2Client (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
201 oAuth2Client -
0 jsonError -
*/ public okhttp3.Call createOAuth2ClientCall(OAuth2Client oauth2Client, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = oauth2Client; // create path and map variables String localVarPath = "/clients"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createOAuth2ClientValidateBeforeCall(OAuth2Client oauth2Client, final ApiCallback _callback) throws ApiException { // verify the required parameter 'oauth2Client' is set if (oauth2Client == null) { throw new ApiException("Missing the required parameter 'oauth2Client' when calling createOAuth2Client(Async)"); } okhttp3.Call localVarCall = createOAuth2ClientCall(oauth2Client, _callback); return localVarCall; } /** * Create an OAuth 2.0 Client * Create a new OAuth 2.0 client If you pass `client_secret` the secret will be used, otherwise a random secret will be generated. The secret will be returned in the response and you will not be able to retrieve it later on. Write the secret down and keep it somwhere safe. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. * @param oauth2Client (required) * @return OAuth2Client * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 oAuth2Client -
0 jsonError -
*/ public OAuth2Client createOAuth2Client(OAuth2Client oauth2Client) throws ApiException { ApiResponse localVarResp = createOAuth2ClientWithHttpInfo(oauth2Client); return localVarResp.getData(); } /** * Create an OAuth 2.0 Client * Create a new OAuth 2.0 client If you pass `client_secret` the secret will be used, otherwise a random secret will be generated. The secret will be returned in the response and you will not be able to retrieve it later on. Write the secret down and keep it somwhere safe. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. * @param oauth2Client (required) * @return ApiResponse<OAuth2Client> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 oAuth2Client -
0 jsonError -
*/ public ApiResponse createOAuth2ClientWithHttpInfo(OAuth2Client oauth2Client) throws ApiException { okhttp3.Call localVarCall = createOAuth2ClientValidateBeforeCall(oauth2Client, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create an OAuth 2.0 Client (asynchronously) * Create a new OAuth 2.0 client If you pass `client_secret` the secret will be used, otherwise a random secret will be generated. The secret will be returned in the response and you will not be able to retrieve it later on. Write the secret down and keep it somwhere safe. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. * @param oauth2Client (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
201 oAuth2Client -
0 jsonError -
*/ public okhttp3.Call createOAuth2ClientAsync(OAuth2Client oauth2Client, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createOAuth2ClientValidateBeforeCall(oauth2Client, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteJsonWebKey * @param kid The kid of the desired key (required) * @param set The set (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
401 jsonError -
403 jsonError -
500 jsonError -
*/ public okhttp3.Call deleteJsonWebKeyCall(String kid, String set, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/keys/{set}/{kid}" .replaceAll("\\{" + "kid" + "\\}", localVarApiClient.escapeString(kid.toString())) .replaceAll("\\{" + "set" + "\\}", localVarApiClient.escapeString(set.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteJsonWebKeyValidateBeforeCall(String kid, String set, final ApiCallback _callback) throws ApiException { // verify the required parameter 'kid' is set if (kid == null) { throw new ApiException("Missing the required parameter 'kid' when calling deleteJsonWebKey(Async)"); } // verify the required parameter 'set' is set if (set == null) { throw new ApiException("Missing the required parameter 'set' when calling deleteJsonWebKey(Async)"); } okhttp3.Call localVarCall = deleteJsonWebKeyCall(kid, set, _callback); return localVarCall; } /** * Delete a JSON Web Key * Use this endpoint to delete a single JSON Web Key. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. * @param kid The kid of the desired key (required) * @param set The set (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
401 jsonError -
403 jsonError -
500 jsonError -
*/ public void deleteJsonWebKey(String kid, String set) throws ApiException { deleteJsonWebKeyWithHttpInfo(kid, set); } /** * Delete a JSON Web Key * Use this endpoint to delete a single JSON Web Key. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. * @param kid The kid of the desired key (required) * @param set The set (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
401 jsonError -
403 jsonError -
500 jsonError -
*/ public ApiResponse deleteJsonWebKeyWithHttpInfo(String kid, String set) throws ApiException { okhttp3.Call localVarCall = deleteJsonWebKeyValidateBeforeCall(kid, set, null); return localVarApiClient.execute(localVarCall); } /** * Delete a JSON Web Key (asynchronously) * Use this endpoint to delete a single JSON Web Key. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. * @param kid The kid of the desired key (required) * @param set The set (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
401 jsonError -
403 jsonError -
500 jsonError -
*/ public okhttp3.Call deleteJsonWebKeyAsync(String kid, String set, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteJsonWebKeyValidateBeforeCall(kid, set, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteJsonWebKeySet * @param set The set (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
401 jsonError -
403 jsonError -
500 jsonError -
*/ public okhttp3.Call deleteJsonWebKeySetCall(String set, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/keys/{set}" .replaceAll("\\{" + "set" + "\\}", localVarApiClient.escapeString(set.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteJsonWebKeySetValidateBeforeCall(String set, final ApiCallback _callback) throws ApiException { // verify the required parameter 'set' is set if (set == null) { throw new ApiException("Missing the required parameter 'set' when calling deleteJsonWebKeySet(Async)"); } okhttp3.Call localVarCall = deleteJsonWebKeySetCall(set, _callback); return localVarCall; } /** * Delete a JSON Web Key Set * Use this endpoint to delete a complete JSON Web Key Set and all the keys in that set. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. * @param set The set (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
401 jsonError -
403 jsonError -
500 jsonError -
*/ public void deleteJsonWebKeySet(String set) throws ApiException { deleteJsonWebKeySetWithHttpInfo(set); } /** * Delete a JSON Web Key Set * Use this endpoint to delete a complete JSON Web Key Set and all the keys in that set. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. * @param set The set (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
401 jsonError -
403 jsonError -
500 jsonError -
*/ public ApiResponse deleteJsonWebKeySetWithHttpInfo(String set) throws ApiException { okhttp3.Call localVarCall = deleteJsonWebKeySetValidateBeforeCall(set, null); return localVarApiClient.execute(localVarCall); } /** * Delete a JSON Web Key Set (asynchronously) * Use this endpoint to delete a complete JSON Web Key Set and all the keys in that set. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. * @param set The set (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
401 jsonError -
403 jsonError -
500 jsonError -
*/ public okhttp3.Call deleteJsonWebKeySetAsync(String set, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteJsonWebKeySetValidateBeforeCall(set, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteOAuth2Client * @param id The id of the OAuth 2.0 Client. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
0 jsonError -
*/ public okhttp3.Call deleteOAuth2ClientCall(String id, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/clients/{id}" .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteOAuth2ClientValidateBeforeCall(String id, final ApiCallback _callback) throws ApiException { // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling deleteOAuth2Client(Async)"); } okhttp3.Call localVarCall = deleteOAuth2ClientCall(id, _callback); return localVarCall; } /** * Deletes an OAuth 2.0 Client * Delete an existing OAuth 2.0 Client by its ID. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. Make sure that this endpoint is well protected and only callable by first-party components. * @param id The id of the OAuth 2.0 Client. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
0 jsonError -
*/ public void deleteOAuth2Client(String id) throws ApiException { deleteOAuth2ClientWithHttpInfo(id); } /** * Deletes an OAuth 2.0 Client * Delete an existing OAuth 2.0 Client by its ID. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. Make sure that this endpoint is well protected and only callable by first-party components. * @param id The id of the OAuth 2.0 Client. (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
0 jsonError -
*/ public ApiResponse deleteOAuth2ClientWithHttpInfo(String id) throws ApiException { okhttp3.Call localVarCall = deleteOAuth2ClientValidateBeforeCall(id, null); return localVarApiClient.execute(localVarCall); } /** * Deletes an OAuth 2.0 Client (asynchronously) * Delete an existing OAuth 2.0 Client by its ID. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. Make sure that this endpoint is well protected and only callable by first-party components. * @param id The id of the OAuth 2.0 Client. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
0 jsonError -
*/ public okhttp3.Call deleteOAuth2ClientAsync(String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteOAuth2ClientValidateBeforeCall(id, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteOAuth2Token * @param clientId (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
401 jsonError -
500 jsonError -
*/ public okhttp3.Call deleteOAuth2TokenCall(String clientId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/oauth2/tokens"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (clientId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("client_id", clientId)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteOAuth2TokenValidateBeforeCall(String clientId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'clientId' is set if (clientId == null) { throw new ApiException("Missing the required parameter 'clientId' when calling deleteOAuth2Token(Async)"); } okhttp3.Call localVarCall = deleteOAuth2TokenCall(clientId, _callback); return localVarCall; } /** * Delete OAuth2 Access Tokens from a Client * This endpoint deletes OAuth2 access tokens issued for a client from the database * @param clientId (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
401 jsonError -
500 jsonError -
*/ public void deleteOAuth2Token(String clientId) throws ApiException { deleteOAuth2TokenWithHttpInfo(clientId); } /** * Delete OAuth2 Access Tokens from a Client * This endpoint deletes OAuth2 access tokens issued for a client from the database * @param clientId (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
401 jsonError -
500 jsonError -
*/ public ApiResponse deleteOAuth2TokenWithHttpInfo(String clientId) throws ApiException { okhttp3.Call localVarCall = deleteOAuth2TokenValidateBeforeCall(clientId, null); return localVarApiClient.execute(localVarCall); } /** * Delete OAuth2 Access Tokens from a Client (asynchronously) * This endpoint deletes OAuth2 access tokens issued for a client from the database * @param clientId (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
401 jsonError -
500 jsonError -
*/ public okhttp3.Call deleteOAuth2TokenAsync(String clientId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteOAuth2TokenValidateBeforeCall(clientId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteTrustedJwtGrantIssuer * @param id The id of the desired grant (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
404 genericError -
500 genericError -
*/ public okhttp3.Call deleteTrustedJwtGrantIssuerCall(String id, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/trust/grants/jwt-bearer/issuers/{id}" .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteTrustedJwtGrantIssuerValidateBeforeCall(String id, final ApiCallback _callback) throws ApiException { // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling deleteTrustedJwtGrantIssuer(Async)"); } okhttp3.Call localVarCall = deleteTrustedJwtGrantIssuerCall(id, _callback); return localVarCall; } /** * Delete a Trusted OAuth2 JWT Bearer Grant Type Issuer * Use this endpoint to delete trusted JWT Bearer Grant Type Issuer. The ID is the one returned when you created the trust relationship. Once deleted, the associated issuer will no longer be able to perform the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grant. * @param id The id of the desired grant (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
404 genericError -
500 genericError -
*/ public void deleteTrustedJwtGrantIssuer(String id) throws ApiException { deleteTrustedJwtGrantIssuerWithHttpInfo(id); } /** * Delete a Trusted OAuth2 JWT Bearer Grant Type Issuer * Use this endpoint to delete trusted JWT Bearer Grant Type Issuer. The ID is the one returned when you created the trust relationship. Once deleted, the associated issuer will no longer be able to perform the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grant. * @param id The id of the desired grant (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
404 genericError -
500 genericError -
*/ public ApiResponse deleteTrustedJwtGrantIssuerWithHttpInfo(String id) throws ApiException { okhttp3.Call localVarCall = deleteTrustedJwtGrantIssuerValidateBeforeCall(id, null); return localVarApiClient.execute(localVarCall); } /** * Delete a Trusted OAuth2 JWT Bearer Grant Type Issuer (asynchronously) * Use this endpoint to delete trusted JWT Bearer Grant Type Issuer. The ID is the one returned when you created the trust relationship. Once deleted, the associated issuer will no longer be able to perform the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grant. * @param id The id of the desired grant (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
404 genericError -
500 genericError -
*/ public okhttp3.Call deleteTrustedJwtGrantIssuerAsync(String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteTrustedJwtGrantIssuerValidateBeforeCall(id, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for flushInactiveOAuth2Tokens * @param flushInactiveOAuth2TokensRequest (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
401 jsonError -
500 jsonError -
*/ public okhttp3.Call flushInactiveOAuth2TokensCall(FlushInactiveOAuth2TokensRequest flushInactiveOAuth2TokensRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = flushInactiveOAuth2TokensRequest; // create path and map variables String localVarPath = "/oauth2/flush"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call flushInactiveOAuth2TokensValidateBeforeCall(FlushInactiveOAuth2TokensRequest flushInactiveOAuth2TokensRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = flushInactiveOAuth2TokensCall(flushInactiveOAuth2TokensRequest, _callback); return localVarCall; } /** * Flush Expired OAuth2 Access Tokens * This endpoint flushes expired OAuth2 access tokens from the database. You can set a time after which no tokens will be not be touched, in case you want to keep recent tokens for auditing. Refresh tokens can not be flushed as they are deleted automatically when performing the refresh flow. * @param flushInactiveOAuth2TokensRequest (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
401 jsonError -
500 jsonError -
*/ public void flushInactiveOAuth2Tokens(FlushInactiveOAuth2TokensRequest flushInactiveOAuth2TokensRequest) throws ApiException { flushInactiveOAuth2TokensWithHttpInfo(flushInactiveOAuth2TokensRequest); } /** * Flush Expired OAuth2 Access Tokens * This endpoint flushes expired OAuth2 access tokens from the database. You can set a time after which no tokens will be not be touched, in case you want to keep recent tokens for auditing. Refresh tokens can not be flushed as they are deleted automatically when performing the refresh flow. * @param flushInactiveOAuth2TokensRequest (optional) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
401 jsonError -
500 jsonError -
*/ public ApiResponse flushInactiveOAuth2TokensWithHttpInfo(FlushInactiveOAuth2TokensRequest flushInactiveOAuth2TokensRequest) throws ApiException { okhttp3.Call localVarCall = flushInactiveOAuth2TokensValidateBeforeCall(flushInactiveOAuth2TokensRequest, null); return localVarApiClient.execute(localVarCall); } /** * Flush Expired OAuth2 Access Tokens (asynchronously) * This endpoint flushes expired OAuth2 access tokens from the database. You can set a time after which no tokens will be not be touched, in case you want to keep recent tokens for auditing. Refresh tokens can not be flushed as they are deleted automatically when performing the refresh flow. * @param flushInactiveOAuth2TokensRequest (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
401 jsonError -
500 jsonError -
*/ public okhttp3.Call flushInactiveOAuth2TokensAsync(FlushInactiveOAuth2TokensRequest flushInactiveOAuth2TokensRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = flushInactiveOAuth2TokensValidateBeforeCall(flushInactiveOAuth2TokensRequest, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for getConsentRequest * @param consentChallenge (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 consentRequest -
404 jsonError -
410 requestWasHandledResponse -
500 jsonError -
*/ public okhttp3.Call getConsentRequestCall(String consentChallenge, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/oauth2/auth/requests/consent"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (consentChallenge != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("consent_challenge", consentChallenge)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getConsentRequestValidateBeforeCall(String consentChallenge, final ApiCallback _callback) throws ApiException { // verify the required parameter 'consentChallenge' is set if (consentChallenge == null) { throw new ApiException("Missing the required parameter 'consentChallenge' when calling getConsentRequest(Async)"); } okhttp3.Call localVarCall = getConsentRequestCall(consentChallenge, _callback); return localVarCall; } /** * Get Consent Request Information * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider to authenticate the subject and then tell ORY Hydra now about it. If the subject authenticated, he/she must now be asked if the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject's behalf. The consent provider which handles this request and is a web app implemented and hosted by you. It shows a subject interface which asks the subject to grant or deny the client access to the requested scope (\"Application my-dropbox-app wants write access to all your private files\"). The consent challenge is appended to the consent provider's URL to which the subject's user-agent (browser) is redirected to. The consent provider uses that challenge to fetch information on the OAuth2 request and then tells ORY Hydra if the subject accepted or rejected the request. * @param consentChallenge (required) * @return ConsentRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 consentRequest -
404 jsonError -
410 requestWasHandledResponse -
500 jsonError -
*/ public ConsentRequest getConsentRequest(String consentChallenge) throws ApiException { ApiResponse localVarResp = getConsentRequestWithHttpInfo(consentChallenge); return localVarResp.getData(); } /** * Get Consent Request Information * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider to authenticate the subject and then tell ORY Hydra now about it. If the subject authenticated, he/she must now be asked if the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject's behalf. The consent provider which handles this request and is a web app implemented and hosted by you. It shows a subject interface which asks the subject to grant or deny the client access to the requested scope (\"Application my-dropbox-app wants write access to all your private files\"). The consent challenge is appended to the consent provider's URL to which the subject's user-agent (browser) is redirected to. The consent provider uses that challenge to fetch information on the OAuth2 request and then tells ORY Hydra if the subject accepted or rejected the request. * @param consentChallenge (required) * @return ApiResponse<ConsentRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 consentRequest -
404 jsonError -
410 requestWasHandledResponse -
500 jsonError -
*/ public ApiResponse getConsentRequestWithHttpInfo(String consentChallenge) throws ApiException { okhttp3.Call localVarCall = getConsentRequestValidateBeforeCall(consentChallenge, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get Consent Request Information (asynchronously) * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider to authenticate the subject and then tell ORY Hydra now about it. If the subject authenticated, he/she must now be asked if the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject's behalf. The consent provider which handles this request and is a web app implemented and hosted by you. It shows a subject interface which asks the subject to grant or deny the client access to the requested scope (\"Application my-dropbox-app wants write access to all your private files\"). The consent challenge is appended to the consent provider's URL to which the subject's user-agent (browser) is redirected to. The consent provider uses that challenge to fetch information on the OAuth2 request and then tells ORY Hydra if the subject accepted or rejected the request. * @param consentChallenge (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 consentRequest -
404 jsonError -
410 requestWasHandledResponse -
500 jsonError -
*/ public okhttp3.Call getConsentRequestAsync(String consentChallenge, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getConsentRequestValidateBeforeCall(consentChallenge, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getJsonWebKey * @param kid The kid of the desired key (required) * @param set The set (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 JSONWebKeySet -
404 jsonError -
500 jsonError -
*/ public okhttp3.Call getJsonWebKeyCall(String kid, String set, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/keys/{set}/{kid}" .replaceAll("\\{" + "kid" + "\\}", localVarApiClient.escapeString(kid.toString())) .replaceAll("\\{" + "set" + "\\}", localVarApiClient.escapeString(set.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getJsonWebKeyValidateBeforeCall(String kid, String set, final ApiCallback _callback) throws ApiException { // verify the required parameter 'kid' is set if (kid == null) { throw new ApiException("Missing the required parameter 'kid' when calling getJsonWebKey(Async)"); } // verify the required parameter 'set' is set if (set == null) { throw new ApiException("Missing the required parameter 'set' when calling getJsonWebKey(Async)"); } okhttp3.Call localVarCall = getJsonWebKeyCall(kid, set, _callback); return localVarCall; } /** * Fetch a JSON Web Key * This endpoint returns a singular JSON Web Key, identified by the set and the specific key ID (kid). * @param kid The kid of the desired key (required) * @param set The set (required) * @return JSONWebKeySet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 JSONWebKeySet -
404 jsonError -
500 jsonError -
*/ public JSONWebKeySet getJsonWebKey(String kid, String set) throws ApiException { ApiResponse localVarResp = getJsonWebKeyWithHttpInfo(kid, set); return localVarResp.getData(); } /** * Fetch a JSON Web Key * This endpoint returns a singular JSON Web Key, identified by the set and the specific key ID (kid). * @param kid The kid of the desired key (required) * @param set The set (required) * @return ApiResponse<JSONWebKeySet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 JSONWebKeySet -
404 jsonError -
500 jsonError -
*/ public ApiResponse getJsonWebKeyWithHttpInfo(String kid, String set) throws ApiException { okhttp3.Call localVarCall = getJsonWebKeyValidateBeforeCall(kid, set, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Fetch a JSON Web Key (asynchronously) * This endpoint returns a singular JSON Web Key, identified by the set and the specific key ID (kid). * @param kid The kid of the desired key (required) * @param set The set (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 JSONWebKeySet -
404 jsonError -
500 jsonError -
*/ public okhttp3.Call getJsonWebKeyAsync(String kid, String set, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getJsonWebKeyValidateBeforeCall(kid, set, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getJsonWebKeySet * @param set The set (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 JSONWebKeySet -
401 jsonError -
403 jsonError -
500 jsonError -
*/ public okhttp3.Call getJsonWebKeySetCall(String set, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/keys/{set}" .replaceAll("\\{" + "set" + "\\}", localVarApiClient.escapeString(set.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getJsonWebKeySetValidateBeforeCall(String set, final ApiCallback _callback) throws ApiException { // verify the required parameter 'set' is set if (set == null) { throw new ApiException("Missing the required parameter 'set' when calling getJsonWebKeySet(Async)"); } okhttp3.Call localVarCall = getJsonWebKeySetCall(set, _callback); return localVarCall; } /** * Retrieve a JSON Web Key Set * This endpoint can be used to retrieve JWK Sets stored in ORY Hydra. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. * @param set The set (required) * @return JSONWebKeySet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 JSONWebKeySet -
401 jsonError -
403 jsonError -
500 jsonError -
*/ public JSONWebKeySet getJsonWebKeySet(String set) throws ApiException { ApiResponse localVarResp = getJsonWebKeySetWithHttpInfo(set); return localVarResp.getData(); } /** * Retrieve a JSON Web Key Set * This endpoint can be used to retrieve JWK Sets stored in ORY Hydra. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. * @param set The set (required) * @return ApiResponse<JSONWebKeySet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 JSONWebKeySet -
401 jsonError -
403 jsonError -
500 jsonError -
*/ public ApiResponse getJsonWebKeySetWithHttpInfo(String set) throws ApiException { okhttp3.Call localVarCall = getJsonWebKeySetValidateBeforeCall(set, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Retrieve a JSON Web Key Set (asynchronously) * This endpoint can be used to retrieve JWK Sets stored in ORY Hydra. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. * @param set The set (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 JSONWebKeySet -
401 jsonError -
403 jsonError -
500 jsonError -
*/ public okhttp3.Call getJsonWebKeySetAsync(String set, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getJsonWebKeySetValidateBeforeCall(set, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getLoginRequest * @param loginChallenge (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 loginRequest -
400 jsonError -
404 jsonError -
410 requestWasHandledResponse -
500 jsonError -
*/ public okhttp3.Call getLoginRequestCall(String loginChallenge, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/oauth2/auth/requests/login"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (loginChallenge != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("login_challenge", loginChallenge)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getLoginRequestValidateBeforeCall(String loginChallenge, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loginChallenge' is set if (loginChallenge == null) { throw new ApiException("Missing the required parameter 'loginChallenge' when calling getLoginRequest(Async)"); } okhttp3.Call localVarCall = getLoginRequestCall(loginChallenge, _callback); return localVarCall; } /** * Get a Login Request * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider (sometimes called \"identity provider\") to authenticate the subject and then tell ORY Hydra now about it. The login provider is an web-app you write and host, and it must be able to authenticate (\"show the subject a login screen\") a subject (in OAuth2 the proper name for subject is \"resource owner\"). The authentication challenge is appended to the login provider URL to which the subject's user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. * @param loginChallenge (required) * @return LoginRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 loginRequest -
400 jsonError -
404 jsonError -
410 requestWasHandledResponse -
500 jsonError -
*/ public LoginRequest getLoginRequest(String loginChallenge) throws ApiException { ApiResponse localVarResp = getLoginRequestWithHttpInfo(loginChallenge); return localVarResp.getData(); } /** * Get a Login Request * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider (sometimes called \"identity provider\") to authenticate the subject and then tell ORY Hydra now about it. The login provider is an web-app you write and host, and it must be able to authenticate (\"show the subject a login screen\") a subject (in OAuth2 the proper name for subject is \"resource owner\"). The authentication challenge is appended to the login provider URL to which the subject's user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. * @param loginChallenge (required) * @return ApiResponse<LoginRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 loginRequest -
400 jsonError -
404 jsonError -
410 requestWasHandledResponse -
500 jsonError -
*/ public ApiResponse getLoginRequestWithHttpInfo(String loginChallenge) throws ApiException { okhttp3.Call localVarCall = getLoginRequestValidateBeforeCall(loginChallenge, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get a Login Request (asynchronously) * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider (sometimes called \"identity provider\") to authenticate the subject and then tell ORY Hydra now about it. The login provider is an web-app you write and host, and it must be able to authenticate (\"show the subject a login screen\") a subject (in OAuth2 the proper name for subject is \"resource owner\"). The authentication challenge is appended to the login provider URL to which the subject's user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. * @param loginChallenge (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 loginRequest -
400 jsonError -
404 jsonError -
410 requestWasHandledResponse -
500 jsonError -
*/ public okhttp3.Call getLoginRequestAsync(String loginChallenge, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLoginRequestValidateBeforeCall(loginChallenge, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getLogoutRequest * @param logoutChallenge (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 logoutRequest -
404 jsonError -
410 requestWasHandledResponse -
500 jsonError -
*/ public okhttp3.Call getLogoutRequestCall(String logoutChallenge, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/oauth2/auth/requests/logout"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (logoutChallenge != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("logout_challenge", logoutChallenge)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getLogoutRequestValidateBeforeCall(String logoutChallenge, final ApiCallback _callback) throws ApiException { // verify the required parameter 'logoutChallenge' is set if (logoutChallenge == null) { throw new ApiException("Missing the required parameter 'logoutChallenge' when calling getLogoutRequest(Async)"); } okhttp3.Call localVarCall = getLogoutRequestCall(logoutChallenge, _callback); return localVarCall; } /** * Get a Logout Request * Use this endpoint to fetch a logout request. * @param logoutChallenge (required) * @return LogoutRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 logoutRequest -
404 jsonError -
410 requestWasHandledResponse -
500 jsonError -
*/ public LogoutRequest getLogoutRequest(String logoutChallenge) throws ApiException { ApiResponse localVarResp = getLogoutRequestWithHttpInfo(logoutChallenge); return localVarResp.getData(); } /** * Get a Logout Request * Use this endpoint to fetch a logout request. * @param logoutChallenge (required) * @return ApiResponse<LogoutRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 logoutRequest -
404 jsonError -
410 requestWasHandledResponse -
500 jsonError -
*/ public ApiResponse getLogoutRequestWithHttpInfo(String logoutChallenge) throws ApiException { okhttp3.Call localVarCall = getLogoutRequestValidateBeforeCall(logoutChallenge, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get a Logout Request (asynchronously) * Use this endpoint to fetch a logout request. * @param logoutChallenge (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 logoutRequest -
404 jsonError -
410 requestWasHandledResponse -
500 jsonError -
*/ public okhttp3.Call getLogoutRequestAsync(String logoutChallenge, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLogoutRequestValidateBeforeCall(logoutChallenge, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getOAuth2Client * @param id The id of the OAuth 2.0 Client. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 oAuth2Client -
0 jsonError -
*/ public okhttp3.Call getOAuth2ClientCall(String id, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/clients/{id}" .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getOAuth2ClientValidateBeforeCall(String id, final ApiCallback _callback) throws ApiException { // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling getOAuth2Client(Async)"); } okhttp3.Call localVarCall = getOAuth2ClientCall(id, _callback); return localVarCall; } /** * Get an OAuth 2.0 Client * Get an OAuth 2.0 client by its ID. This endpoint never returns the client secret. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. * @param id The id of the OAuth 2.0 Client. (required) * @return OAuth2Client * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 oAuth2Client -
0 jsonError -
*/ public OAuth2Client getOAuth2Client(String id) throws ApiException { ApiResponse localVarResp = getOAuth2ClientWithHttpInfo(id); return localVarResp.getData(); } /** * Get an OAuth 2.0 Client * Get an OAuth 2.0 client by its ID. This endpoint never returns the client secret. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. * @param id The id of the OAuth 2.0 Client. (required) * @return ApiResponse<OAuth2Client> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 oAuth2Client -
0 jsonError -
*/ public ApiResponse getOAuth2ClientWithHttpInfo(String id) throws ApiException { okhttp3.Call localVarCall = getOAuth2ClientValidateBeforeCall(id, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get an OAuth 2.0 Client (asynchronously) * Get an OAuth 2.0 client by its ID. This endpoint never returns the client secret. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. * @param id The id of the OAuth 2.0 Client. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 oAuth2Client -
0 jsonError -
*/ public okhttp3.Call getOAuth2ClientAsync(String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getOAuth2ClientValidateBeforeCall(id, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getTrustedJwtGrantIssuer * @param id The id of the desired grant (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 trustedJwtGrantIssuer -
404 genericError -
500 genericError -
*/ public okhttp3.Call getTrustedJwtGrantIssuerCall(String id, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/trust/grants/jwt-bearer/issuers/{id}" .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getTrustedJwtGrantIssuerValidateBeforeCall(String id, final ApiCallback _callback) throws ApiException { // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling getTrustedJwtGrantIssuer(Async)"); } okhttp3.Call localVarCall = getTrustedJwtGrantIssuerCall(id, _callback); return localVarCall; } /** * Get a Trusted OAuth2 JWT Bearer Grant Type Issuer * Use this endpoint to get a trusted JWT Bearer Grant Type Issuer. The ID is the one returned when you created the trust relationship. * @param id The id of the desired grant (required) * @return TrustedJwtGrantIssuer * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 trustedJwtGrantIssuer -
404 genericError -
500 genericError -
*/ public TrustedJwtGrantIssuer getTrustedJwtGrantIssuer(String id) throws ApiException { ApiResponse localVarResp = getTrustedJwtGrantIssuerWithHttpInfo(id); return localVarResp.getData(); } /** * Get a Trusted OAuth2 JWT Bearer Grant Type Issuer * Use this endpoint to get a trusted JWT Bearer Grant Type Issuer. The ID is the one returned when you created the trust relationship. * @param id The id of the desired grant (required) * @return ApiResponse<TrustedJwtGrantIssuer> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 trustedJwtGrantIssuer -
404 genericError -
500 genericError -
*/ public ApiResponse getTrustedJwtGrantIssuerWithHttpInfo(String id) throws ApiException { okhttp3.Call localVarCall = getTrustedJwtGrantIssuerValidateBeforeCall(id, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get a Trusted OAuth2 JWT Bearer Grant Type Issuer (asynchronously) * Use this endpoint to get a trusted JWT Bearer Grant Type Issuer. The ID is the one returned when you created the trust relationship. * @param id The id of the desired grant (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 trustedJwtGrantIssuer -
404 genericError -
500 genericError -
*/ public okhttp3.Call getTrustedJwtGrantIssuerAsync(String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTrustedJwtGrantIssuerValidateBeforeCall(id, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for introspectOAuth2Token * @param token The string value of the token. For access tokens, this is the \\\"access_token\\\" value returned from the token endpoint defined in OAuth 2.0. For refresh tokens, this is the \\\"refresh_token\\\" value returned. (required) * @param scope An optional, space separated list of required scopes. If the access token was not granted one of the scopes, the result of active will be false. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 oAuth2TokenIntrospection -
401 jsonError -
500 jsonError -
*/ public okhttp3.Call introspectOAuth2TokenCall(String token, String scope, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/oauth2/introspect"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (scope != null) { localVarFormParams.put("scope", scope); } if (token != null) { localVarFormParams.put("token", token); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/x-www-form-urlencoded" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call introspectOAuth2TokenValidateBeforeCall(String token, String scope, final ApiCallback _callback) throws ApiException { // verify the required parameter 'token' is set if (token == null) { throw new ApiException("Missing the required parameter 'token' when calling introspectOAuth2Token(Async)"); } okhttp3.Call localVarCall = introspectOAuth2TokenCall(token, scope, _callback); return localVarCall; } /** * Introspect OAuth2 Tokens * The introspection endpoint allows to check if a token (both refresh and access) is active or not. An active token is neither expired nor revoked. If a token is active, additional information on the token will be included. You can set additional data for a token by setting `accessTokenExtra` during the consent flow. For more information [read this blog post](https://www.oauth.com/oauth2-servers/token-introspection-endpoint/). * @param token The string value of the token. For access tokens, this is the \\\"access_token\\\" value returned from the token endpoint defined in OAuth 2.0. For refresh tokens, this is the \\\"refresh_token\\\" value returned. (required) * @param scope An optional, space separated list of required scopes. If the access token was not granted one of the scopes, the result of active will be false. (optional) * @return OAuth2TokenIntrospection * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 oAuth2TokenIntrospection -
401 jsonError -
500 jsonError -
*/ public OAuth2TokenIntrospection introspectOAuth2Token(String token, String scope) throws ApiException { ApiResponse localVarResp = introspectOAuth2TokenWithHttpInfo(token, scope); return localVarResp.getData(); } /** * Introspect OAuth2 Tokens * The introspection endpoint allows to check if a token (both refresh and access) is active or not. An active token is neither expired nor revoked. If a token is active, additional information on the token will be included. You can set additional data for a token by setting `accessTokenExtra` during the consent flow. For more information [read this blog post](https://www.oauth.com/oauth2-servers/token-introspection-endpoint/). * @param token The string value of the token. For access tokens, this is the \\\"access_token\\\" value returned from the token endpoint defined in OAuth 2.0. For refresh tokens, this is the \\\"refresh_token\\\" value returned. (required) * @param scope An optional, space separated list of required scopes. If the access token was not granted one of the scopes, the result of active will be false. (optional) * @return ApiResponse<OAuth2TokenIntrospection> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 oAuth2TokenIntrospection -
401 jsonError -
500 jsonError -
*/ public ApiResponse introspectOAuth2TokenWithHttpInfo(String token, String scope) throws ApiException { okhttp3.Call localVarCall = introspectOAuth2TokenValidateBeforeCall(token, scope, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Introspect OAuth2 Tokens (asynchronously) * The introspection endpoint allows to check if a token (both refresh and access) is active or not. An active token is neither expired nor revoked. If a token is active, additional information on the token will be included. You can set additional data for a token by setting `accessTokenExtra` during the consent flow. For more information [read this blog post](https://www.oauth.com/oauth2-servers/token-introspection-endpoint/). * @param token The string value of the token. For access tokens, this is the \\\"access_token\\\" value returned from the token endpoint defined in OAuth 2.0. For refresh tokens, this is the \\\"refresh_token\\\" value returned. (required) * @param scope An optional, space separated list of required scopes. If the access token was not granted one of the scopes, the result of active will be false. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 oAuth2TokenIntrospection -
401 jsonError -
500 jsonError -
*/ public okhttp3.Call introspectOAuth2TokenAsync(String token, String scope, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = introspectOAuth2TokenValidateBeforeCall(token, scope, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listOAuth2Clients * @param limit The maximum amount of clients to returned, upper bound is 500 clients. (optional) * @param offset The offset from where to start looking. (optional) * @param clientName The name of the clients to filter by. (optional) * @param owner The owner of the clients to filter by. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 A list of clients. -
0 jsonError -
*/ public okhttp3.Call listOAuth2ClientsCall(Long limit, Long offset, String clientName, String owner, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/clients"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (offset != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset)); } if (clientName != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("client_name", clientName)); } if (owner != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("owner", owner)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listOAuth2ClientsValidateBeforeCall(Long limit, Long offset, String clientName, String owner, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listOAuth2ClientsCall(limit, offset, clientName, owner, _callback); return localVarCall; } /** * List OAuth 2.0 Clients * This endpoint lists all clients in the database, and never returns client secrets. As a default it lists the first 100 clients. The `limit` parameter can be used to retrieve more clients, but it has an upper bound at 500 objects. Pagination should be used to retrieve more than 500 objects. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. The \"Link\" header is also included in successful responses, which contains one or more links for pagination, formatted like so: '<https://hydra-url/admin/clients?limit={limit}&offset={offset}>; rel=\"{page}\"', where page is one of the following applicable pages: 'first', 'next', 'last', and 'previous'. Multiple links can be included in this header, and will be separated by a comma. * @param limit The maximum amount of clients to returned, upper bound is 500 clients. (optional) * @param offset The offset from where to start looking. (optional) * @param clientName The name of the clients to filter by. (optional) * @param owner The owner of the clients to filter by. (optional) * @return List<OAuth2Client> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A list of clients. -
0 jsonError -
*/ public List listOAuth2Clients(Long limit, Long offset, String clientName, String owner) throws ApiException { ApiResponse> localVarResp = listOAuth2ClientsWithHttpInfo(limit, offset, clientName, owner); return localVarResp.getData(); } /** * List OAuth 2.0 Clients * This endpoint lists all clients in the database, and never returns client secrets. As a default it lists the first 100 clients. The `limit` parameter can be used to retrieve more clients, but it has an upper bound at 500 objects. Pagination should be used to retrieve more than 500 objects. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. The \"Link\" header is also included in successful responses, which contains one or more links for pagination, formatted like so: '<https://hydra-url/admin/clients?limit={limit}&offset={offset}>; rel=\"{page}\"', where page is one of the following applicable pages: 'first', 'next', 'last', and 'previous'. Multiple links can be included in this header, and will be separated by a comma. * @param limit The maximum amount of clients to returned, upper bound is 500 clients. (optional) * @param offset The offset from where to start looking. (optional) * @param clientName The name of the clients to filter by. (optional) * @param owner The owner of the clients to filter by. (optional) * @return ApiResponse<List<OAuth2Client>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A list of clients. -
0 jsonError -
*/ public ApiResponse> listOAuth2ClientsWithHttpInfo(Long limit, Long offset, String clientName, String owner) throws ApiException { okhttp3.Call localVarCall = listOAuth2ClientsValidateBeforeCall(limit, offset, clientName, owner, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List OAuth 2.0 Clients (asynchronously) * This endpoint lists all clients in the database, and never returns client secrets. As a default it lists the first 100 clients. The `limit` parameter can be used to retrieve more clients, but it has an upper bound at 500 objects. Pagination should be used to retrieve more than 500 objects. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. The \"Link\" header is also included in successful responses, which contains one or more links for pagination, formatted like so: '<https://hydra-url/admin/clients?limit={limit}&offset={offset}>; rel=\"{page}\"', where page is one of the following applicable pages: 'first', 'next', 'last', and 'previous'. Multiple links can be included in this header, and will be separated by a comma. * @param limit The maximum amount of clients to returned, upper bound is 500 clients. (optional) * @param offset The offset from where to start looking. (optional) * @param clientName The name of the clients to filter by. (optional) * @param owner The owner of the clients to filter by. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 A list of clients. -
0 jsonError -
*/ public okhttp3.Call listOAuth2ClientsAsync(Long limit, Long offset, String clientName, String owner, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = listOAuth2ClientsValidateBeforeCall(limit, offset, clientName, owner, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listSubjectConsentSessions * @param subject (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 A list of used consent requests. -
400 jsonError -
500 jsonError -
*/ public okhttp3.Call listSubjectConsentSessionsCall(String subject, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/oauth2/auth/sessions/consent"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (subject != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("subject", subject)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listSubjectConsentSessionsValidateBeforeCall(String subject, final ApiCallback _callback) throws ApiException { // verify the required parameter 'subject' is set if (subject == null) { throw new ApiException("Missing the required parameter 'subject' when calling listSubjectConsentSessions(Async)"); } okhttp3.Call localVarCall = listSubjectConsentSessionsCall(subject, _callback); return localVarCall; } /** * Lists All Consent Sessions of a Subject * This endpoint lists all subject's granted consent sessions, including client and granted scope. If the subject is unknown or has not granted any consent sessions yet, the endpoint returns an empty JSON array with status code 200 OK. The \"Link\" header is also included in successful responses, which contains one or more links for pagination, formatted like so: '<https://hydra-url/admin/oauth2/auth/sessions/consent?subject={user}&limit={limit}&offset={offset}>; rel=\"{page}\"', where page is one of the following applicable pages: 'first', 'next', 'last', and 'previous'. Multiple links can be included in this header, and will be separated by a comma. * @param subject (required) * @return List<PreviousConsentSession> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A list of used consent requests. -
400 jsonError -
500 jsonError -
*/ public List listSubjectConsentSessions(String subject) throws ApiException { ApiResponse> localVarResp = listSubjectConsentSessionsWithHttpInfo(subject); return localVarResp.getData(); } /** * Lists All Consent Sessions of a Subject * This endpoint lists all subject's granted consent sessions, including client and granted scope. If the subject is unknown or has not granted any consent sessions yet, the endpoint returns an empty JSON array with status code 200 OK. The \"Link\" header is also included in successful responses, which contains one or more links for pagination, formatted like so: '<https://hydra-url/admin/oauth2/auth/sessions/consent?subject={user}&limit={limit}&offset={offset}>; rel=\"{page}\"', where page is one of the following applicable pages: 'first', 'next', 'last', and 'previous'. Multiple links can be included in this header, and will be separated by a comma. * @param subject (required) * @return ApiResponse<List<PreviousConsentSession>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A list of used consent requests. -
400 jsonError -
500 jsonError -
*/ public ApiResponse> listSubjectConsentSessionsWithHttpInfo(String subject) throws ApiException { okhttp3.Call localVarCall = listSubjectConsentSessionsValidateBeforeCall(subject, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Lists All Consent Sessions of a Subject (asynchronously) * This endpoint lists all subject's granted consent sessions, including client and granted scope. If the subject is unknown or has not granted any consent sessions yet, the endpoint returns an empty JSON array with status code 200 OK. The \"Link\" header is also included in successful responses, which contains one or more links for pagination, formatted like so: '<https://hydra-url/admin/oauth2/auth/sessions/consent?subject={user}&limit={limit}&offset={offset}>; rel=\"{page}\"', where page is one of the following applicable pages: 'first', 'next', 'last', and 'previous'. Multiple links can be included in this header, and will be separated by a comma. * @param subject (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 A list of used consent requests. -
400 jsonError -
500 jsonError -
*/ public okhttp3.Call listSubjectConsentSessionsAsync(String subject, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = listSubjectConsentSessionsValidateBeforeCall(subject, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listTrustedJwtGrantIssuers * @param issuer If optional \"issuer\" is supplied, only jwt-bearer grants with this issuer will be returned. (optional) * @param limit The maximum amount of policies returned, upper bound is 500 policies (optional) * @param offset The offset from where to start looking. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 trustedJwtGrantIssuers -
500 genericError -
*/ public okhttp3.Call listTrustedJwtGrantIssuersCall(String issuer, Long limit, Long offset, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/trust/grants/jwt-bearer/issuers"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (issuer != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("issuer", issuer)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (offset != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listTrustedJwtGrantIssuersValidateBeforeCall(String issuer, Long limit, Long offset, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listTrustedJwtGrantIssuersCall(issuer, limit, offset, _callback); return localVarCall; } /** * List Trusted OAuth2 JWT Bearer Grant Type Issuers * Use this endpoint to list all trusted JWT Bearer Grant Type Issuers. * @param issuer If optional \"issuer\" is supplied, only jwt-bearer grants with this issuer will be returned. (optional) * @param limit The maximum amount of policies returned, upper bound is 500 policies (optional) * @param offset The offset from where to start looking. (optional) * @return List<TrustedJwtGrantIssuer> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 trustedJwtGrantIssuers -
500 genericError -
*/ public List listTrustedJwtGrantIssuers(String issuer, Long limit, Long offset) throws ApiException { ApiResponse> localVarResp = listTrustedJwtGrantIssuersWithHttpInfo(issuer, limit, offset); return localVarResp.getData(); } /** * List Trusted OAuth2 JWT Bearer Grant Type Issuers * Use this endpoint to list all trusted JWT Bearer Grant Type Issuers. * @param issuer If optional \"issuer\" is supplied, only jwt-bearer grants with this issuer will be returned. (optional) * @param limit The maximum amount of policies returned, upper bound is 500 policies (optional) * @param offset The offset from where to start looking. (optional) * @return ApiResponse<List<TrustedJwtGrantIssuer>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 trustedJwtGrantIssuers -
500 genericError -
*/ public ApiResponse> listTrustedJwtGrantIssuersWithHttpInfo(String issuer, Long limit, Long offset) throws ApiException { okhttp3.Call localVarCall = listTrustedJwtGrantIssuersValidateBeforeCall(issuer, limit, offset, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List Trusted OAuth2 JWT Bearer Grant Type Issuers (asynchronously) * Use this endpoint to list all trusted JWT Bearer Grant Type Issuers. * @param issuer If optional \"issuer\" is supplied, only jwt-bearer grants with this issuer will be returned. (optional) * @param limit The maximum amount of policies returned, upper bound is 500 policies (optional) * @param offset The offset from where to start looking. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 trustedJwtGrantIssuers -
500 genericError -
*/ public okhttp3.Call listTrustedJwtGrantIssuersAsync(String issuer, Long limit, Long offset, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = listTrustedJwtGrantIssuersValidateBeforeCall(issuer, limit, offset, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for patchOAuth2Client * @param id The id of the OAuth 2.0 Client. (required) * @param patchDocument (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 oAuth2Client -
0 jsonError -
*/ public okhttp3.Call patchOAuth2ClientCall(String id, List patchDocument, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = patchDocument; // create path and map variables String localVarPath = "/clients/{id}" .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchOAuth2ClientValidateBeforeCall(String id, List patchDocument, final ApiCallback _callback) throws ApiException { // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling patchOAuth2Client(Async)"); } // verify the required parameter 'patchDocument' is set if (patchDocument == null) { throw new ApiException("Missing the required parameter 'patchDocument' when calling patchOAuth2Client(Async)"); } okhttp3.Call localVarCall = patchOAuth2ClientCall(id, patchDocument, _callback); return localVarCall; } /** * Patch an OAuth 2.0 Client * Patch an existing OAuth 2.0 Client. If you pass `client_secret` the secret will be updated and returned via the API. This is the only time you will be able to retrieve the client secret, so write it down and keep it safe. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. * @param id The id of the OAuth 2.0 Client. (required) * @param patchDocument (required) * @return OAuth2Client * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 oAuth2Client -
0 jsonError -
*/ public OAuth2Client patchOAuth2Client(String id, List patchDocument) throws ApiException { ApiResponse localVarResp = patchOAuth2ClientWithHttpInfo(id, patchDocument); return localVarResp.getData(); } /** * Patch an OAuth 2.0 Client * Patch an existing OAuth 2.0 Client. If you pass `client_secret` the secret will be updated and returned via the API. This is the only time you will be able to retrieve the client secret, so write it down and keep it safe. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. * @param id The id of the OAuth 2.0 Client. (required) * @param patchDocument (required) * @return ApiResponse<OAuth2Client> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 oAuth2Client -
0 jsonError -
*/ public ApiResponse patchOAuth2ClientWithHttpInfo(String id, List patchDocument) throws ApiException { okhttp3.Call localVarCall = patchOAuth2ClientValidateBeforeCall(id, patchDocument, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Patch an OAuth 2.0 Client (asynchronously) * Patch an existing OAuth 2.0 Client. If you pass `client_secret` the secret will be updated and returned via the API. This is the only time you will be able to retrieve the client secret, so write it down and keep it safe. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. * @param id The id of the OAuth 2.0 Client. (required) * @param patchDocument (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 oAuth2Client -
0 jsonError -
*/ public okhttp3.Call patchOAuth2ClientAsync(String id, List patchDocument, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchOAuth2ClientValidateBeforeCall(id, patchDocument, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for rejectConsentRequest * @param consentChallenge (required) * @param rejectRequest (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 completedRequest -
404 jsonError -
500 jsonError -
*/ public okhttp3.Call rejectConsentRequestCall(String consentChallenge, RejectRequest rejectRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = rejectRequest; // create path and map variables String localVarPath = "/oauth2/auth/requests/consent/reject"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (consentChallenge != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("consent_challenge", consentChallenge)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call rejectConsentRequestValidateBeforeCall(String consentChallenge, RejectRequest rejectRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'consentChallenge' is set if (consentChallenge == null) { throw new ApiException("Missing the required parameter 'consentChallenge' when calling rejectConsentRequest(Async)"); } okhttp3.Call localVarCall = rejectConsentRequestCall(consentChallenge, rejectRequest, _callback); return localVarCall; } /** * Reject a Consent Request * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider to authenticate the subject and then tell ORY Hydra now about it. If the subject authenticated, he/she must now be asked if the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject's behalf. The consent provider which handles this request and is a web app implemented and hosted by you. It shows a subject interface which asks the subject to grant or deny the client access to the requested scope (\"Application my-dropbox-app wants write access to all your private files\"). The consent challenge is appended to the consent provider's URL to which the subject's user-agent (browser) is redirected to. The consent provider uses that challenge to fetch information on the OAuth2 request and then tells ORY Hydra if the subject accepted or rejected the request. This endpoint tells ORY Hydra that the subject has not authorized the OAuth 2.0 client to access resources on his/her behalf. The consent provider must include a reason why the consent was not granted. The response contains a redirect URL which the consent provider should redirect the user-agent to. * @param consentChallenge (required) * @param rejectRequest (optional) * @return CompletedRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 completedRequest -
404 jsonError -
500 jsonError -
*/ public CompletedRequest rejectConsentRequest(String consentChallenge, RejectRequest rejectRequest) throws ApiException { ApiResponse localVarResp = rejectConsentRequestWithHttpInfo(consentChallenge, rejectRequest); return localVarResp.getData(); } /** * Reject a Consent Request * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider to authenticate the subject and then tell ORY Hydra now about it. If the subject authenticated, he/she must now be asked if the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject's behalf. The consent provider which handles this request and is a web app implemented and hosted by you. It shows a subject interface which asks the subject to grant or deny the client access to the requested scope (\"Application my-dropbox-app wants write access to all your private files\"). The consent challenge is appended to the consent provider's URL to which the subject's user-agent (browser) is redirected to. The consent provider uses that challenge to fetch information on the OAuth2 request and then tells ORY Hydra if the subject accepted or rejected the request. This endpoint tells ORY Hydra that the subject has not authorized the OAuth 2.0 client to access resources on his/her behalf. The consent provider must include a reason why the consent was not granted. The response contains a redirect URL which the consent provider should redirect the user-agent to. * @param consentChallenge (required) * @param rejectRequest (optional) * @return ApiResponse<CompletedRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 completedRequest -
404 jsonError -
500 jsonError -
*/ public ApiResponse rejectConsentRequestWithHttpInfo(String consentChallenge, RejectRequest rejectRequest) throws ApiException { okhttp3.Call localVarCall = rejectConsentRequestValidateBeforeCall(consentChallenge, rejectRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Reject a Consent Request (asynchronously) * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider to authenticate the subject and then tell ORY Hydra now about it. If the subject authenticated, he/she must now be asked if the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject's behalf. The consent provider which handles this request and is a web app implemented and hosted by you. It shows a subject interface which asks the subject to grant or deny the client access to the requested scope (\"Application my-dropbox-app wants write access to all your private files\"). The consent challenge is appended to the consent provider's URL to which the subject's user-agent (browser) is redirected to. The consent provider uses that challenge to fetch information on the OAuth2 request and then tells ORY Hydra if the subject accepted or rejected the request. This endpoint tells ORY Hydra that the subject has not authorized the OAuth 2.0 client to access resources on his/her behalf. The consent provider must include a reason why the consent was not granted. The response contains a redirect URL which the consent provider should redirect the user-agent to. * @param consentChallenge (required) * @param rejectRequest (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 completedRequest -
404 jsonError -
500 jsonError -
*/ public okhttp3.Call rejectConsentRequestAsync(String consentChallenge, RejectRequest rejectRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = rejectConsentRequestValidateBeforeCall(consentChallenge, rejectRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for rejectLoginRequest * @param loginChallenge (required) * @param rejectRequest (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 completedRequest -
400 jsonError -
401 jsonError -
404 jsonError -
500 jsonError -
*/ public okhttp3.Call rejectLoginRequestCall(String loginChallenge, RejectRequest rejectRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = rejectRequest; // create path and map variables String localVarPath = "/oauth2/auth/requests/login/reject"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (loginChallenge != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("login_challenge", loginChallenge)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call rejectLoginRequestValidateBeforeCall(String loginChallenge, RejectRequest rejectRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loginChallenge' is set if (loginChallenge == null) { throw new ApiException("Missing the required parameter 'loginChallenge' when calling rejectLoginRequest(Async)"); } okhttp3.Call localVarCall = rejectLoginRequestCall(loginChallenge, rejectRequest, _callback); return localVarCall; } /** * Reject a Login Request * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider (sometimes called \"identity provider\") to authenticate the subject and then tell ORY Hydra now about it. The login provider is an web-app you write and host, and it must be able to authenticate (\"show the subject a login screen\") a subject (in OAuth2 the proper name for subject is \"resource owner\"). The authentication challenge is appended to the login provider URL to which the subject's user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. This endpoint tells ORY Hydra that the subject has not authenticated and includes a reason why the authentication was be denied. The response contains a redirect URL which the login provider should redirect the user-agent to. * @param loginChallenge (required) * @param rejectRequest (optional) * @return CompletedRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 completedRequest -
400 jsonError -
401 jsonError -
404 jsonError -
500 jsonError -
*/ public CompletedRequest rejectLoginRequest(String loginChallenge, RejectRequest rejectRequest) throws ApiException { ApiResponse localVarResp = rejectLoginRequestWithHttpInfo(loginChallenge, rejectRequest); return localVarResp.getData(); } /** * Reject a Login Request * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider (sometimes called \"identity provider\") to authenticate the subject and then tell ORY Hydra now about it. The login provider is an web-app you write and host, and it must be able to authenticate (\"show the subject a login screen\") a subject (in OAuth2 the proper name for subject is \"resource owner\"). The authentication challenge is appended to the login provider URL to which the subject's user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. This endpoint tells ORY Hydra that the subject has not authenticated and includes a reason why the authentication was be denied. The response contains a redirect URL which the login provider should redirect the user-agent to. * @param loginChallenge (required) * @param rejectRequest (optional) * @return ApiResponse<CompletedRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 completedRequest -
400 jsonError -
401 jsonError -
404 jsonError -
500 jsonError -
*/ public ApiResponse rejectLoginRequestWithHttpInfo(String loginChallenge, RejectRequest rejectRequest) throws ApiException { okhttp3.Call localVarCall = rejectLoginRequestValidateBeforeCall(loginChallenge, rejectRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Reject a Login Request (asynchronously) * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider (sometimes called \"identity provider\") to authenticate the subject and then tell ORY Hydra now about it. The login provider is an web-app you write and host, and it must be able to authenticate (\"show the subject a login screen\") a subject (in OAuth2 the proper name for subject is \"resource owner\"). The authentication challenge is appended to the login provider URL to which the subject's user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. This endpoint tells ORY Hydra that the subject has not authenticated and includes a reason why the authentication was be denied. The response contains a redirect URL which the login provider should redirect the user-agent to. * @param loginChallenge (required) * @param rejectRequest (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 completedRequest -
400 jsonError -
401 jsonError -
404 jsonError -
500 jsonError -
*/ public okhttp3.Call rejectLoginRequestAsync(String loginChallenge, RejectRequest rejectRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = rejectLoginRequestValidateBeforeCall(loginChallenge, rejectRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for rejectLogoutRequest * @param logoutChallenge (required) * @param rejectRequest (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
404 jsonError -
500 jsonError -
*/ public okhttp3.Call rejectLogoutRequestCall(String logoutChallenge, RejectRequest rejectRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = rejectRequest; // create path and map variables String localVarPath = "/oauth2/auth/requests/logout/reject"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (logoutChallenge != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("logout_challenge", logoutChallenge)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json", "application/x-www-form-urlencoded" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call rejectLogoutRequestValidateBeforeCall(String logoutChallenge, RejectRequest rejectRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'logoutChallenge' is set if (logoutChallenge == null) { throw new ApiException("Missing the required parameter 'logoutChallenge' when calling rejectLogoutRequest(Async)"); } okhttp3.Call localVarCall = rejectLogoutRequestCall(logoutChallenge, rejectRequest, _callback); return localVarCall; } /** * Reject a Logout Request * When a user or an application requests ORY Hydra to log out a user, this endpoint is used to deny that logout request. No body is required. The response is empty as the logout provider has to chose what action to perform next. * @param logoutChallenge (required) * @param rejectRequest (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
404 jsonError -
500 jsonError -
*/ public void rejectLogoutRequest(String logoutChallenge, RejectRequest rejectRequest) throws ApiException { rejectLogoutRequestWithHttpInfo(logoutChallenge, rejectRequest); } /** * Reject a Logout Request * When a user or an application requests ORY Hydra to log out a user, this endpoint is used to deny that logout request. No body is required. The response is empty as the logout provider has to chose what action to perform next. * @param logoutChallenge (required) * @param rejectRequest (optional) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
404 jsonError -
500 jsonError -
*/ public ApiResponse rejectLogoutRequestWithHttpInfo(String logoutChallenge, RejectRequest rejectRequest) throws ApiException { okhttp3.Call localVarCall = rejectLogoutRequestValidateBeforeCall(logoutChallenge, rejectRequest, null); return localVarApiClient.execute(localVarCall); } /** * Reject a Logout Request (asynchronously) * When a user or an application requests ORY Hydra to log out a user, this endpoint is used to deny that logout request. No body is required. The response is empty as the logout provider has to chose what action to perform next. * @param logoutChallenge (required) * @param rejectRequest (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
404 jsonError -
500 jsonError -
*/ public okhttp3.Call rejectLogoutRequestAsync(String logoutChallenge, RejectRequest rejectRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = rejectLogoutRequestValidateBeforeCall(logoutChallenge, rejectRequest, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for revokeAuthenticationSession * @param subject (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
400 jsonError -
500 jsonError -
*/ public okhttp3.Call revokeAuthenticationSessionCall(String subject, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/oauth2/auth/sessions/login"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (subject != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("subject", subject)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call revokeAuthenticationSessionValidateBeforeCall(String subject, final ApiCallback _callback) throws ApiException { // verify the required parameter 'subject' is set if (subject == null) { throw new ApiException("Missing the required parameter 'subject' when calling revokeAuthenticationSession(Async)"); } okhttp3.Call localVarCall = revokeAuthenticationSessionCall(subject, _callback); return localVarCall; } /** * Invalidates All Login Sessions of a Certain User Invalidates a Subject's Authentication Session * This endpoint invalidates a subject's authentication session. After revoking the authentication session, the subject has to re-authenticate at ORY Hydra. This endpoint does not invalidate any tokens and does not work with OpenID Connect Front- or Back-channel logout. * @param subject (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
400 jsonError -
500 jsonError -
*/ public void revokeAuthenticationSession(String subject) throws ApiException { revokeAuthenticationSessionWithHttpInfo(subject); } /** * Invalidates All Login Sessions of a Certain User Invalidates a Subject's Authentication Session * This endpoint invalidates a subject's authentication session. After revoking the authentication session, the subject has to re-authenticate at ORY Hydra. This endpoint does not invalidate any tokens and does not work with OpenID Connect Front- or Back-channel logout. * @param subject (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
400 jsonError -
500 jsonError -
*/ public ApiResponse revokeAuthenticationSessionWithHttpInfo(String subject) throws ApiException { okhttp3.Call localVarCall = revokeAuthenticationSessionValidateBeforeCall(subject, null); return localVarApiClient.execute(localVarCall); } /** * Invalidates All Login Sessions of a Certain User Invalidates a Subject's Authentication Session (asynchronously) * This endpoint invalidates a subject's authentication session. After revoking the authentication session, the subject has to re-authenticate at ORY Hydra. This endpoint does not invalidate any tokens and does not work with OpenID Connect Front- or Back-channel logout. * @param subject (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
400 jsonError -
500 jsonError -
*/ public okhttp3.Call revokeAuthenticationSessionAsync(String subject, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = revokeAuthenticationSessionValidateBeforeCall(subject, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for revokeConsentSessions * @param subject The subject (Subject) who's consent sessions should be deleted. (required) * @param client If set, deletes only those consent sessions by the Subject that have been granted to the specified OAuth 2.0 Client ID (optional) * @param all If set to `?all=true`, deletes all consent sessions by the Subject that have been granted. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
400 jsonError -
500 jsonError -
*/ public okhttp3.Call revokeConsentSessionsCall(String subject, String client, Boolean all, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/oauth2/auth/sessions/consent"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (subject != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("subject", subject)); } if (client != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("client", client)); } if (all != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("all", all)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call revokeConsentSessionsValidateBeforeCall(String subject, String client, Boolean all, final ApiCallback _callback) throws ApiException { // verify the required parameter 'subject' is set if (subject == null) { throw new ApiException("Missing the required parameter 'subject' when calling revokeConsentSessions(Async)"); } okhttp3.Call localVarCall = revokeConsentSessionsCall(subject, client, all, _callback); return localVarCall; } /** * Revokes Consent Sessions of a Subject for a Specific OAuth 2.0 Client * This endpoint revokes a subject's granted consent sessions for a specific OAuth 2.0 Client and invalidates all associated OAuth 2.0 Access Tokens. * @param subject The subject (Subject) who's consent sessions should be deleted. (required) * @param client If set, deletes only those consent sessions by the Subject that have been granted to the specified OAuth 2.0 Client ID (optional) * @param all If set to `?all=true`, deletes all consent sessions by the Subject that have been granted. (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
400 jsonError -
500 jsonError -
*/ public void revokeConsentSessions(String subject, String client, Boolean all) throws ApiException { revokeConsentSessionsWithHttpInfo(subject, client, all); } /** * Revokes Consent Sessions of a Subject for a Specific OAuth 2.0 Client * This endpoint revokes a subject's granted consent sessions for a specific OAuth 2.0 Client and invalidates all associated OAuth 2.0 Access Tokens. * @param subject The subject (Subject) who's consent sessions should be deleted. (required) * @param client If set, deletes only those consent sessions by the Subject that have been granted to the specified OAuth 2.0 Client ID (optional) * @param all If set to `?all=true`, deletes all consent sessions by the Subject that have been granted. (optional) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
400 jsonError -
500 jsonError -
*/ public ApiResponse revokeConsentSessionsWithHttpInfo(String subject, String client, Boolean all) throws ApiException { okhttp3.Call localVarCall = revokeConsentSessionsValidateBeforeCall(subject, client, all, null); return localVarApiClient.execute(localVarCall); } /** * Revokes Consent Sessions of a Subject for a Specific OAuth 2.0 Client (asynchronously) * This endpoint revokes a subject's granted consent sessions for a specific OAuth 2.0 Client and invalidates all associated OAuth 2.0 Access Tokens. * @param subject The subject (Subject) who's consent sessions should be deleted. (required) * @param client If set, deletes only those consent sessions by the Subject that have been granted to the specified OAuth 2.0 Client ID (optional) * @param all If set to `?all=true`, deletes all consent sessions by the Subject that have been granted. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. -
400 jsonError -
500 jsonError -
*/ public okhttp3.Call revokeConsentSessionsAsync(String subject, String client, Boolean all, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = revokeConsentSessionsValidateBeforeCall(subject, client, all, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for trustJwtGrantIssuer * @param trustJwtGrantIssuerBody (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
201 trustedJwtGrantIssuer -
400 genericError -
409 genericError -
500 genericError -
*/ public okhttp3.Call trustJwtGrantIssuerCall(TrustJwtGrantIssuerBody trustJwtGrantIssuerBody, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = trustJwtGrantIssuerBody; // create path and map variables String localVarPath = "/trust/grants/jwt-bearer/issuers"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call trustJwtGrantIssuerValidateBeforeCall(TrustJwtGrantIssuerBody trustJwtGrantIssuerBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = trustJwtGrantIssuerCall(trustJwtGrantIssuerBody, _callback); return localVarCall; } /** * Trust an OAuth2 JWT Bearer Grant Type Issuer * Use this endpoint to establish a trust relationship for a JWT issuer to perform JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants [RFC7523](https://datatracker.ietf.org/doc/html/rfc7523). * @param trustJwtGrantIssuerBody (optional) * @return TrustedJwtGrantIssuer * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 trustedJwtGrantIssuer -
400 genericError -
409 genericError -
500 genericError -
*/ public TrustedJwtGrantIssuer trustJwtGrantIssuer(TrustJwtGrantIssuerBody trustJwtGrantIssuerBody) throws ApiException { ApiResponse localVarResp = trustJwtGrantIssuerWithHttpInfo(trustJwtGrantIssuerBody); return localVarResp.getData(); } /** * Trust an OAuth2 JWT Bearer Grant Type Issuer * Use this endpoint to establish a trust relationship for a JWT issuer to perform JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants [RFC7523](https://datatracker.ietf.org/doc/html/rfc7523). * @param trustJwtGrantIssuerBody (optional) * @return ApiResponse<TrustedJwtGrantIssuer> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 trustedJwtGrantIssuer -
400 genericError -
409 genericError -
500 genericError -
*/ public ApiResponse trustJwtGrantIssuerWithHttpInfo(TrustJwtGrantIssuerBody trustJwtGrantIssuerBody) throws ApiException { okhttp3.Call localVarCall = trustJwtGrantIssuerValidateBeforeCall(trustJwtGrantIssuerBody, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Trust an OAuth2 JWT Bearer Grant Type Issuer (asynchronously) * Use this endpoint to establish a trust relationship for a JWT issuer to perform JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants [RFC7523](https://datatracker.ietf.org/doc/html/rfc7523). * @param trustJwtGrantIssuerBody (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
201 trustedJwtGrantIssuer -
400 genericError -
409 genericError -
500 genericError -
*/ public okhttp3.Call trustJwtGrantIssuerAsync(TrustJwtGrantIssuerBody trustJwtGrantIssuerBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = trustJwtGrantIssuerValidateBeforeCall(trustJwtGrantIssuerBody, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for updateJsonWebKey * @param kid The kid of the desired key (required) * @param set The set (required) * @param jsONWebKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 JSONWebKey -
401 jsonError -
403 jsonError -
500 jsonError -
*/ public okhttp3.Call updateJsonWebKeyCall(String kid, String set, JSONWebKey jsONWebKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = jsONWebKey; // create path and map variables String localVarPath = "/keys/{set}/{kid}" .replaceAll("\\{" + "kid" + "\\}", localVarApiClient.escapeString(kid.toString())) .replaceAll("\\{" + "set" + "\\}", localVarApiClient.escapeString(set.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updateJsonWebKeyValidateBeforeCall(String kid, String set, JSONWebKey jsONWebKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'kid' is set if (kid == null) { throw new ApiException("Missing the required parameter 'kid' when calling updateJsonWebKey(Async)"); } // verify the required parameter 'set' is set if (set == null) { throw new ApiException("Missing the required parameter 'set' when calling updateJsonWebKey(Async)"); } okhttp3.Call localVarCall = updateJsonWebKeyCall(kid, set, jsONWebKey, _callback); return localVarCall; } /** * Update a JSON Web Key * Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. * @param kid The kid of the desired key (required) * @param set The set (required) * @param jsONWebKey (optional) * @return JSONWebKey * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 JSONWebKey -
401 jsonError -
403 jsonError -
500 jsonError -
*/ public JSONWebKey updateJsonWebKey(String kid, String set, JSONWebKey jsONWebKey) throws ApiException { ApiResponse localVarResp = updateJsonWebKeyWithHttpInfo(kid, set, jsONWebKey); return localVarResp.getData(); } /** * Update a JSON Web Key * Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. * @param kid The kid of the desired key (required) * @param set The set (required) * @param jsONWebKey (optional) * @return ApiResponse<JSONWebKey> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 JSONWebKey -
401 jsonError -
403 jsonError -
500 jsonError -
*/ public ApiResponse updateJsonWebKeyWithHttpInfo(String kid, String set, JSONWebKey jsONWebKey) throws ApiException { okhttp3.Call localVarCall = updateJsonWebKeyValidateBeforeCall(kid, set, jsONWebKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update a JSON Web Key (asynchronously) * Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. * @param kid The kid of the desired key (required) * @param set The set (required) * @param jsONWebKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 JSONWebKey -
401 jsonError -
403 jsonError -
500 jsonError -
*/ public okhttp3.Call updateJsonWebKeyAsync(String kid, String set, JSONWebKey jsONWebKey, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateJsonWebKeyValidateBeforeCall(kid, set, jsONWebKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for updateJsonWebKeySet * @param set The set (required) * @param jsONWebKeySet (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 JSONWebKeySet -
401 jsonError -
403 jsonError -
500 jsonError -
*/ public okhttp3.Call updateJsonWebKeySetCall(String set, JSONWebKeySet jsONWebKeySet, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = jsONWebKeySet; // create path and map variables String localVarPath = "/keys/{set}" .replaceAll("\\{" + "set" + "\\}", localVarApiClient.escapeString(set.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updateJsonWebKeySetValidateBeforeCall(String set, JSONWebKeySet jsONWebKeySet, final ApiCallback _callback) throws ApiException { // verify the required parameter 'set' is set if (set == null) { throw new ApiException("Missing the required parameter 'set' when calling updateJsonWebKeySet(Async)"); } okhttp3.Call localVarCall = updateJsonWebKeySetCall(set, jsONWebKeySet, _callback); return localVarCall; } /** * Update a JSON Web Key Set * Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. * @param set The set (required) * @param jsONWebKeySet (optional) * @return JSONWebKeySet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 JSONWebKeySet -
401 jsonError -
403 jsonError -
500 jsonError -
*/ public JSONWebKeySet updateJsonWebKeySet(String set, JSONWebKeySet jsONWebKeySet) throws ApiException { ApiResponse localVarResp = updateJsonWebKeySetWithHttpInfo(set, jsONWebKeySet); return localVarResp.getData(); } /** * Update a JSON Web Key Set * Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. * @param set The set (required) * @param jsONWebKeySet (optional) * @return ApiResponse<JSONWebKeySet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 JSONWebKeySet -
401 jsonError -
403 jsonError -
500 jsonError -
*/ public ApiResponse updateJsonWebKeySetWithHttpInfo(String set, JSONWebKeySet jsONWebKeySet) throws ApiException { okhttp3.Call localVarCall = updateJsonWebKeySetValidateBeforeCall(set, jsONWebKeySet, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update a JSON Web Key Set (asynchronously) * Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. * @param set The set (required) * @param jsONWebKeySet (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 JSONWebKeySet -
401 jsonError -
403 jsonError -
500 jsonError -
*/ public okhttp3.Call updateJsonWebKeySetAsync(String set, JSONWebKeySet jsONWebKeySet, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateJsonWebKeySetValidateBeforeCall(set, jsONWebKeySet, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for updateOAuth2Client * @param id The id of the OAuth 2.0 Client. (required) * @param oauth2Client (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 oAuth2Client -
0 jsonError -
*/ public okhttp3.Call updateOAuth2ClientCall(String id, OAuth2Client oauth2Client, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = oauth2Client; // create path and map variables String localVarPath = "/clients/{id}" .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updateOAuth2ClientValidateBeforeCall(String id, OAuth2Client oauth2Client, final ApiCallback _callback) throws ApiException { // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling updateOAuth2Client(Async)"); } // verify the required parameter 'oauth2Client' is set if (oauth2Client == null) { throw new ApiException("Missing the required parameter 'oauth2Client' when calling updateOAuth2Client(Async)"); } okhttp3.Call localVarCall = updateOAuth2ClientCall(id, oauth2Client, _callback); return localVarCall; } /** * Update an OAuth 2.0 Client * Update an existing OAuth 2.0 Client. If you pass `client_secret` the secret will be updated and returned via the API. This is the only time you will be able to retrieve the client secret, so write it down and keep it safe. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. * @param id The id of the OAuth 2.0 Client. (required) * @param oauth2Client (required) * @return OAuth2Client * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 oAuth2Client -
0 jsonError -
*/ public OAuth2Client updateOAuth2Client(String id, OAuth2Client oauth2Client) throws ApiException { ApiResponse localVarResp = updateOAuth2ClientWithHttpInfo(id, oauth2Client); return localVarResp.getData(); } /** * Update an OAuth 2.0 Client * Update an existing OAuth 2.0 Client. If you pass `client_secret` the secret will be updated and returned via the API. This is the only time you will be able to retrieve the client secret, so write it down and keep it safe. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. * @param id The id of the OAuth 2.0 Client. (required) * @param oauth2Client (required) * @return ApiResponse<OAuth2Client> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 oAuth2Client -
0 jsonError -
*/ public ApiResponse updateOAuth2ClientWithHttpInfo(String id, OAuth2Client oauth2Client) throws ApiException { okhttp3.Call localVarCall = updateOAuth2ClientValidateBeforeCall(id, oauth2Client, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update an OAuth 2.0 Client (asynchronously) * Update an existing OAuth 2.0 Client. If you pass `client_secret` the secret will be updated and returned via the API. This is the only time you will be able to retrieve the client secret, so write it down and keep it safe. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. * @param id The id of the OAuth 2.0 Client. (required) * @param oauth2Client (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 oAuth2Client -
0 jsonError -
*/ public okhttp3.Call updateOAuth2ClientAsync(String id, OAuth2Client oauth2Client, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateOAuth2ClientValidateBeforeCall(id, oauth2Client, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy