Package com.okta.sdk.resource.api
Class AuthorizationServerClaimsApi
java.lang.Object
com.okta.sdk.resource.api.AuthorizationServerClaimsApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-03-13T17:36:05.533634+05:30[Asia/Kolkata]",
comments="Generator version: 7.15.0")
public class AuthorizationServerClaimsApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateOAuth2Claim(String authServerId, OAuth2Claim oAuth2Claim) Create a custom token claim Creates a custom token Claim for a custom authorization servercreateOAuth2Claim(String authServerId, OAuth2Claim oAuth2Claim, Map<String, String> additionalHeaders) Create a custom token claim Creates a custom token Claim for a custom authorization servervoiddeleteOAuth2Claim(String authServerId, String claimId) Delete a custom token claim Deletes a custom token Claim specified by the `claimId`voidDelete a custom token claim Deletes a custom token Claim specified by the `claimId`getOAuth2Claim(String authServerId, String claimId) Retrieve a custom token claim Retrieves a custom token Claim by the specified `claimId`Retrieve a custom token claim Retrieves a custom token Claim by the specified `claimId`protected static com.fasterxml.jackson.databind.ObjectMapperlistOAuth2Claims(String authServerId) List all custom token claims Lists all custom token Claims defined for a specified custom authorization serverlistOAuth2Claims(String authServerId, Map<String, String> additionalHeaders) List all custom token claims Lists all custom token Claims defined for a specified custom authorization serverlistOAuth2ClaimsPaged(String authServerId) List all custom token claims (Paginated) Lists all custom token Claims defined for a specified custom authorization server This method returns a lazy, paginated iterable that automatically handles pagination.listOAuth2ClaimsPaged(String authServerId, Map<String, String> additionalHeaders) List all custom token claims (Paginated with additional headers) Lists all custom token Claims defined for a specified custom authorization server This method returns a lazy, paginated iterable that automatically handles pagination.replaceOAuth2Claim(String authServerId, String claimId, OAuth2Claim oAuth2Claim) Replace a custom token claim Replaces a custom token Claim specified by the `claimId`replaceOAuth2Claim(String authServerId, String claimId, OAuth2Claim oAuth2Claim, Map<String, String> additionalHeaders) Replace a custom token claim Replaces a custom token Claim specified by the `claimId`voidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
AuthorizationServerClaimsApi
public AuthorizationServerClaimsApi() -
AuthorizationServerClaimsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createOAuth2Claim
public OAuth2Claim createOAuth2Claim(String authServerId, OAuth2Claim oAuth2Claim) throws ApiException Create a custom token claim Creates a custom token Claim for a custom authorization server- Parameters:
authServerId- `id` of the Authorization Server (required)oAuth2Claim- (required)- Returns:
- OAuth2Claim
- Throws:
ApiException- if fails to make API call
-
createOAuth2Claim
public OAuth2Claim createOAuth2Claim(String authServerId, OAuth2Claim oAuth2Claim, Map<String, String> additionalHeaders) throws ApiExceptionCreate a custom token claim Creates a custom token Claim for a custom authorization server- Parameters:
authServerId- `id` of the Authorization Server (required)oAuth2Claim- (required)additionalHeaders- additionalHeaders for this call- Returns:
- OAuth2Claim
- Throws:
ApiException- if fails to make API call
-
deleteOAuth2Claim
Delete a custom token claim Deletes a custom token Claim specified by the `claimId`- Parameters:
authServerId- `id` of the Authorization Server (required)claimId- `id` of Claim (required)- Throws:
ApiException- if fails to make API call
-
deleteOAuth2Claim
public void deleteOAuth2Claim(String authServerId, String claimId, Map<String, String> additionalHeaders) throws ApiExceptionDelete a custom token claim Deletes a custom token Claim specified by the `claimId`- Parameters:
authServerId- `id` of the Authorization Server (required)claimId- `id` of Claim (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
getOAuth2Claim
Retrieve a custom token claim Retrieves a custom token Claim by the specified `claimId`- Parameters:
authServerId- `id` of the Authorization Server (required)claimId- `id` of Claim (required)- Returns:
- OAuth2Claim
- Throws:
ApiException- if fails to make API call
-
getOAuth2Claim
public OAuth2Claim getOAuth2Claim(String authServerId, String claimId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a custom token claim Retrieves a custom token Claim by the specified `claimId`- Parameters:
authServerId- `id` of the Authorization Server (required)claimId- `id` of Claim (required)additionalHeaders- additionalHeaders for this call- Returns:
- OAuth2Claim
- Throws:
ApiException- if fails to make API call
-
listOAuth2Claims
List all custom token claims Lists all custom token Claims defined for a specified custom authorization server- Parameters:
authServerId- `id` of the Authorization Server (required)- Returns:
- List<OAuth2Claim>
- Throws:
ApiException- if fails to make API call
-
listOAuth2Claims
public List<OAuth2Claim> listOAuth2Claims(String authServerId, Map<String, String> additionalHeaders) throws ApiExceptionList all custom token claims Lists all custom token Claims defined for a specified custom authorization server- Parameters:
authServerId- `id` of the Authorization Server (required)additionalHeaders- additionalHeaders for this call- Returns:
- List<OAuth2Claim>
- Throws:
ApiException- if fails to make API call
-
listOAuth2ClaimsPaged
List all custom token claims (Paginated) Lists all custom token Claims defined for a specified custom authorization server This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks. Use this method in a for-each loop to automatically fetch all pages without manual cursor management.- Parameters:
authServerId- `id` of the Authorization Server (required)- Returns:
- Iterable<OAuth2Claim> lazy iterable over all pages
-
listOAuth2ClaimsPaged
public Iterable<OAuth2Claim> listOAuth2ClaimsPaged(String authServerId, Map<String, String> additionalHeaders) List all custom token claims (Paginated with additional headers) Lists all custom token Claims defined for a specified custom authorization server This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.- Parameters:
authServerId- `id` of the Authorization Server (required)additionalHeaders- additional headers for this call- Returns:
- Iterable<OAuth2Claim> lazy iterable over all pages
-
replaceOAuth2Claim
public OAuth2Claim replaceOAuth2Claim(String authServerId, String claimId, OAuth2Claim oAuth2Claim) throws ApiException Replace a custom token claim Replaces a custom token Claim specified by the `claimId`- Parameters:
authServerId- `id` of the Authorization Server (required)claimId- `id` of Claim (required)oAuth2Claim- (required)- Returns:
- OAuth2Claim
- Throws:
ApiException- if fails to make API call
-
replaceOAuth2Claim
public OAuth2Claim replaceOAuth2Claim(String authServerId, String claimId, OAuth2Claim oAuth2Claim, Map<String, String> additionalHeaders) throws ApiExceptionReplace a custom token claim Replaces a custom token Claim specified by the `claimId`- Parameters:
authServerId- `id` of the Authorization Server (required)claimId- `id` of Claim (required)oAuth2Claim- (required)additionalHeaders- additionalHeaders for this call- Returns:
- OAuth2Claim
- Throws:
ApiException- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-