Class AuthorizationServerMetadataApi
java.lang.Object
co.ankatech.keymanagement.client.auth.api.AuthorizationServerMetadataApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the authorization server metadata Returns this service's OAuth 2.0 authorization server metadata (<a href=\"https://www.rfc-editor.org/rfc/rfc8414#section-2\" target=\"_blank\">RFC 8414 §2</a>).okhttp3.CallGet the authorization server metadata (asynchronously) Returns this service's OAuth 2.0 authorization server metadata (<a href=\"https://www.rfc-editor.org/rfc/rfc8414#section-2\" target=\"_blank\">RFC 8414 §2</a>).okhttp3.CallgetAuthorizationServerMetadataCall(ApiCallback _callback) Build call for getAuthorizationServerMetadataGet the authorization server metadata Returns this service's OAuth 2.0 authorization server metadata (<a href=\"https://www.rfc-editor.org/rfc/rfc8414#section-2\" target=\"_blank\">RFC 8414 §2</a>).intvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
AuthorizationServerMetadataApi
public AuthorizationServerMetadataApi() -
AuthorizationServerMetadataApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
getAuthorizationServerMetadataCall
Build call for getAuthorizationServerMetadata- Parameters:
_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getAuthorizationServerMetadata
Get the authorization server metadata Returns this service's OAuth 2.0 authorization server metadata (<a href=\"https://www.rfc-editor.org/rfc/rfc8414#section-2\" target=\"_blank\">RFC 8414 §2</a>). <ul> <li><code>issuer</code> — the <code>iss</code> claim of every access token this service issues. It is the platform's issuer identifier, the same in every deployment, and it is not the URL this document is served from: compare a token's <code>iss</code> with this value and read the document by its location.</li> <li><code>token_endpoint</code> — the public URL of the token endpoint. A DPoP proof sent with a token request names exactly this URL as its <code>htu</code>.</li> <li><code>jwks_uri</code> — the public URL of the JWK Set that verifies the tokens.</li> <li><code>dpop_signing_alg_values_supported</code> (<a href=\"https://www.rfc-editor.org/rfc/rfc9449#section-5.1\" target=\"_blank\">RFC 9449 §5.1</a>) — the algorithms a DPoP proof may use when an administrative workload requests a DPoP-bound token.</li> </ul> <p><b>Authentication.</b> None. Credentials on the request are ignored.</p>- Returns:
- AuthorizationServerMetadata
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getAuthorizationServerMetadataWithHttpInfo
public ApiResponse<AuthorizationServerMetadata> getAuthorizationServerMetadataWithHttpInfo() throws ApiExceptionGet the authorization server metadata Returns this service's OAuth 2.0 authorization server metadata (<a href=\"https://www.rfc-editor.org/rfc/rfc8414#section-2\" target=\"_blank\">RFC 8414 §2</a>). <ul> <li><code>issuer</code> — the <code>iss</code> claim of every access token this service issues. It is the platform's issuer identifier, the same in every deployment, and it is not the URL this document is served from: compare a token's <code>iss</code> with this value and read the document by its location.</li> <li><code>token_endpoint</code> — the public URL of the token endpoint. A DPoP proof sent with a token request names exactly this URL as its <code>htu</code>.</li> <li><code>jwks_uri</code> — the public URL of the JWK Set that verifies the tokens.</li> <li><code>dpop_signing_alg_values_supported</code> (<a href=\"https://www.rfc-editor.org/rfc/rfc9449#section-5.1\" target=\"_blank\">RFC 9449 §5.1</a>) — the algorithms a DPoP proof may use when an administrative workload requests a DPoP-bound token.</li> </ul> <p><b>Authentication.</b> None. Credentials on the request are ignored.</p>- Returns:
- ApiResponse<AuthorizationServerMetadata>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getAuthorizationServerMetadataAsync
public okhttp3.Call getAuthorizationServerMetadataAsync(ApiCallback<AuthorizationServerMetadata> _callback) throws ApiException Get the authorization server metadata (asynchronously) Returns this service's OAuth 2.0 authorization server metadata (<a href=\"https://www.rfc-editor.org/rfc/rfc8414#section-2\" target=\"_blank\">RFC 8414 §2</a>). <ul> <li><code>issuer</code> — the <code>iss</code> claim of every access token this service issues. It is the platform's issuer identifier, the same in every deployment, and it is not the URL this document is served from: compare a token's <code>iss</code> with this value and read the document by its location.</li> <li><code>token_endpoint</code> — the public URL of the token endpoint. A DPoP proof sent with a token request names exactly this URL as its <code>htu</code>.</li> <li><code>jwks_uri</code> — the public URL of the JWK Set that verifies the tokens.</li> <li><code>dpop_signing_alg_values_supported</code> (<a href=\"https://www.rfc-editor.org/rfc/rfc9449#section-5.1\" target=\"_blank\">RFC 9449 §5.1</a>) — the algorithms a DPoP proof may use when an administrative workload requests a DPoP-bound token.</li> </ul> <p><b>Authentication.</b> None. Credentials on the request are ignored.</p>- Parameters:
_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-