Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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