Interface SigninClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
AWS Sign-In manages authentication for AWS services. It implements OAuth 2.0, providing secure token exchange and refresh capabilities.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptiondefault BatchRevokeSessionsResponsebatchRevokeSessions(Consumer<BatchRevokeSessionsRequest.Builder> batchRevokeSessionsRequest) Revokes up to five sign-in sessions.default BatchRevokeSessionsResponsebatchRevokeSessions(BatchRevokeSessionsRequest batchRevokeSessionsRequest) Revokes up to five sign-in sessions.static SigninClientBuilderbuilder()Create a builder that can be used to configure and create aSigninClient.static SigninClientcreate()Create aSigninClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateBearerTokenResponsecreateBearerToken(Consumer<CreateBearerTokenRequest.Builder> createBearerTokenRequest) Creates a bearer token that represents your IAM credentials and can be used to access a supported AWS service.default CreateBearerTokenResponsecreateBearerToken(CreateBearerTokenRequest createBearerTokenRequest) Creates a bearer token that represents your IAM credentials and can be used to access a supported AWS service.default CreateOAuth2TokenResponsecreateOAuth2Token(Consumer<CreateOAuth2TokenRequest.Builder> createOAuth2TokenRequest) Exchanges an authorization code or refresh token for an OAuth 2.0 access token and refresh token.default CreateOAuth2TokenResponsecreateOAuth2Token(CreateOAuth2TokenRequest createOAuth2TokenRequest) Exchanges an authorization code or refresh token for an OAuth 2.0 access token and refresh token.default CreateOAuth2TokenWithIamResponsecreateOAuth2TokenWithIAM(Consumer<CreateOAuth2TokenWithIamRequest.Builder> createOAuth2TokenWithIamRequest) Exchanges client credentials for an OAuth 2.0 access token scoped to a resource, which you can use to access AWS services from applications.default CreateOAuth2TokenWithIamResponsecreateOAuth2TokenWithIAM(CreateOAuth2TokenWithIamRequest createOAuth2TokenWithIamRequest) Exchanges client credentials for an OAuth 2.0 access token scoped to a resource, which you can use to access AWS services from applications.createOAuth2TokenWithTokenExchange(Consumer<CreateOAuth2TokenWithTokenExchangeRequest.Builder> createOAuth2TokenWithTokenExchangeRequest) Exchanges a supported token for an OAuth 2.0 access token scoped to a resource, which you can use to access AWS services from applications.createOAuth2TokenWithTokenExchange(CreateOAuth2TokenWithTokenExchangeRequest createOAuth2TokenWithTokenExchangeRequest) Exchanges a supported token for an OAuth 2.0 access token scoped to a resource, which you can use to access AWS services from applications.deleteConsoleAuthorizationConfiguration(Consumer<DeleteConsoleAuthorizationConfigurationRequest.Builder> deleteConsoleAuthorizationConfigurationRequest) Delete console authorization configuration with automatic scope detectiondeleteConsoleAuthorizationConfiguration(DeleteConsoleAuthorizationConfigurationRequest deleteConsoleAuthorizationConfigurationRequest) Delete console authorization configuration with automatic scope detectiondeleteResourcePermissionStatement(Consumer<DeleteResourcePermissionStatementRequest.Builder> deleteResourcePermissionStatementRequest) Remove a permission statement from the account's SignIn resource-based policydeleteResourcePermissionStatement(DeleteResourcePermissionStatementRequest deleteResourcePermissionStatementRequest) Remove a permission statement from the account's SignIn resource-based policygetConsoleAuthorizationConfiguration(Consumer<GetConsoleAuthorizationConfigurationRequest.Builder> getConsoleAuthorizationConfigurationRequest) Get console authorization configuration with automatic scope detectiongetConsoleAuthorizationConfiguration(GetConsoleAuthorizationConfigurationRequest getConsoleAuthorizationConfigurationRequest) Get console authorization configuration with automatic scope detectiondefault GetResourcePolicyResponsegetResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) Retrieve the account's consolidated SignIn resource-based policydefault GetResourcePolicyResponsegetResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) Retrieve the account's consolidated SignIn resource-based policydefault GetSessionResponsegetSession(Consumer<GetSessionRequest.Builder> getSessionRequest) Returns the details of a single sign-in session.default GetSessionResponsegetSession(GetSessionRequest getSessionRequest) Returns the details of a single sign-in session.introspectOAuth2TokenWithIAM(Consumer<IntrospectOAuth2TokenWithIamRequest.Builder> introspectOAuth2TokenWithIamRequest) Inspects the metadata and active state of an OAuth 2.0 access token or refresh token.introspectOAuth2TokenWithIAM(IntrospectOAuth2TokenWithIamRequest introspectOAuth2TokenWithIamRequest) Inspects the metadata and active state of an OAuth 2.0 access token or refresh token.listResourcePermissionStatements(Consumer<ListResourcePermissionStatementsRequest.Builder> listResourcePermissionStatementsRequest) Retrieve all permission statements in the account's SignIn resource-based policylistResourcePermissionStatements(ListResourcePermissionStatementsRequest listResourcePermissionStatementsRequest) Retrieve all permission statements in the account's SignIn resource-based policylistResourcePermissionStatementsPaginator(Consumer<ListResourcePermissionStatementsRequest.Builder> listResourcePermissionStatementsRequest) This is a variant oflistResourcePermissionStatements(software.amazon.awssdk.services.signin.model.ListResourcePermissionStatementsRequest)operation.listResourcePermissionStatementsPaginator(ListResourcePermissionStatementsRequest listResourcePermissionStatementsRequest) This is a variant oflistResourcePermissionStatements(software.amazon.awssdk.services.signin.model.ListResourcePermissionStatementsRequest)operation.default ListSessionsResponselistSessions(Consumer<ListSessionsRequest.Builder> listSessionsRequest) Lists sign-in sessions for an IAM identity in your account.default ListSessionsResponselistSessions(ListSessionsRequest listSessionsRequest) Lists sign-in sessions for an IAM identity in your account.default ListSessionsIterablelistSessionsPaginator(Consumer<ListSessionsRequest.Builder> listSessionsRequest) This is a variant oflistSessions(software.amazon.awssdk.services.signin.model.ListSessionsRequest)operation.default ListSessionsIterablelistSessionsPaginator(ListSessionsRequest listSessionsRequest) This is a variant oflistSessions(software.amazon.awssdk.services.signin.model.ListSessionsRequest)operation.putConsoleAuthorizationConfiguration(Consumer<PutConsoleAuthorizationConfigurationRequest.Builder> putConsoleAuthorizationConfigurationRequest) Enable console authorization configuration with automatic scope detectionputConsoleAuthorizationConfiguration(PutConsoleAuthorizationConfigurationRequest putConsoleAuthorizationConfigurationRequest) Enable console authorization configuration with automatic scope detectionputResourcePermissionStatement(Consumer<PutResourcePermissionStatementRequest.Builder> putResourcePermissionStatementRequest) Create a permission statement in the account's SignIn resource-based policyputResourcePermissionStatement(PutResourcePermissionStatementRequest putResourcePermissionStatementRequest) Create a permission statement in the account's SignIn resource-based policydefault RevokeOAuth2TokenWithIamResponserevokeOAuth2TokenWithIAM(Consumer<RevokeOAuth2TokenWithIamRequest.Builder> revokeOAuth2TokenWithIamRequest) Revokes an OAuth 2.0 refresh token and its associated token chain.default RevokeOAuth2TokenWithIamResponserevokeOAuth2TokenWithIAM(RevokeOAuth2TokenWithIamRequest revokeOAuth2TokenWithIamRequest) Revokes an OAuth 2.0 refresh token and its associated token chain.default SigninServiceClientConfigurationThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadataMethods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
batchRevokeSessions
default BatchRevokeSessionsResponse batchRevokeSessions(BatchRevokeSessionsRequest batchRevokeSessionsRequest) throws TooManyRequestsErrorException, ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Revokes up to five sign-in sessions. A revoked session can no longer be refreshed. Revoking a session that is already revoked succeeds. Each session must belong to the identity specified by principalArn, or to the caller if principalArn is omitted. Failures for individual sessions are returned in the errors list and do not fail the whole request.
- Parameters:
batchRevokeSessionsRequest- Input for BatchRevokeSessions operation- Returns:
- Result of the BatchRevokeSessions operation returned by the service.
- See Also:
-
batchRevokeSessions
default BatchRevokeSessionsResponse batchRevokeSessions(Consumer<BatchRevokeSessionsRequest.Builder> batchRevokeSessionsRequest) throws TooManyRequestsErrorException, ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Revokes up to five sign-in sessions. A revoked session can no longer be refreshed. Revoking a session that is already revoked succeeds. Each session must belong to the identity specified by principalArn, or to the caller if principalArn is omitted. Failures for individual sessions are returned in the errors list and do not fail the whole request.
This is a convenience which creates an instance of the
BatchRevokeSessionsRequest.Builderavoiding the need to create one manually viaBatchRevokeSessionsRequest.builder()- Parameters:
batchRevokeSessionsRequest- AConsumerthat will call methods onBatchRevokeSessionsRequest.Builderto create a request. Input for BatchRevokeSessions operation- Returns:
- Result of the BatchRevokeSessions operation returned by the service.
- See Also:
-
createBearerToken
default CreateBearerTokenResponse createBearerToken(CreateBearerTokenRequest createBearerTokenRequest) throws TooManyRequestsErrorException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Creates a bearer token that represents your IAM credentials and can be used to access a supported AWS service. By default, the token is valid for 12 hours.
- Parameters:
createBearerTokenRequest- Input structure for CreateBearerToken operation- Returns:
- Result of the CreateBearerToken operation returned by the service.
- See Also:
-
createBearerToken
default CreateBearerTokenResponse createBearerToken(Consumer<CreateBearerTokenRequest.Builder> createBearerTokenRequest) throws TooManyRequestsErrorException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Creates a bearer token that represents your IAM credentials and can be used to access a supported AWS service. By default, the token is valid for 12 hours.
This is a convenience which creates an instance of the
CreateBearerTokenRequest.Builderavoiding the need to create one manually viaCreateBearerTokenRequest.builder()- Parameters:
createBearerTokenRequest- AConsumerthat will call methods onCreateBearerTokenRequest.Builderto create a request. Input structure for CreateBearerToken operation- Returns:
- Result of the CreateBearerToken operation returned by the service.
- See Also:
-
createOAuth2Token
default CreateOAuth2TokenResponse createOAuth2Token(CreateOAuth2TokenRequest createOAuth2TokenRequest) throws TooManyRequestsErrorException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Exchanges an authorization code or refresh token for an OAuth 2.0 access token and refresh token.
- Parameters:
createOAuth2TokenRequest- Input structure for CreateOAuth2Token operationContains flattened token operation inputs for both authorization code and refresh token flows. The operation type is determined by the grant_type parameter in the request body.
- Returns:
- Result of the CreateOAuth2Token operation returned by the service.
- See Also:
-
createOAuth2Token
default CreateOAuth2TokenResponse createOAuth2Token(Consumer<CreateOAuth2TokenRequest.Builder> createOAuth2TokenRequest) throws TooManyRequestsErrorException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Exchanges an authorization code or refresh token for an OAuth 2.0 access token and refresh token.
This is a convenience which creates an instance of the
CreateOAuth2TokenRequest.Builderavoiding the need to create one manually viaCreateOAuth2TokenRequest.builder()- Parameters:
createOAuth2TokenRequest- AConsumerthat will call methods onCreateOAuth2TokenRequest.Builderto create a request. Input structure for CreateOAuth2Token operationContains flattened token operation inputs for both authorization code and refresh token flows. The operation type is determined by the grant_type parameter in the request body.
- Returns:
- Result of the CreateOAuth2Token operation returned by the service.
- See Also:
-
createOAuth2TokenWithIAM
default CreateOAuth2TokenWithIamResponse createOAuth2TokenWithIAM(CreateOAuth2TokenWithIamRequest createOAuth2TokenWithIamRequest) throws TooManyRequestsErrorException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Exchanges client credentials for an OAuth 2.0 access token scoped to a resource, which you can use to access AWS services from applications.
- Parameters:
createOAuth2TokenWithIamRequest- Input structure for CreateOAuth2TokenWithIAM operation- Returns:
- Result of the CreateOAuth2TokenWithIAM operation returned by the service.
- See Also:
-
createOAuth2TokenWithIAM
default CreateOAuth2TokenWithIamResponse createOAuth2TokenWithIAM(Consumer<CreateOAuth2TokenWithIamRequest.Builder> createOAuth2TokenWithIamRequest) throws TooManyRequestsErrorException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Exchanges client credentials for an OAuth 2.0 access token scoped to a resource, which you can use to access AWS services from applications.
This is a convenience which creates an instance of the
CreateOAuth2TokenWithIamRequest.Builderavoiding the need to create one manually viaCreateOAuth2TokenWithIamRequest.builder()- Parameters:
createOAuth2TokenWithIamRequest- AConsumerthat will call methods onCreateOAuth2TokenWithIamRequest.Builderto create a request. Input structure for CreateOAuth2TokenWithIAM operation- Returns:
- Result of the CreateOAuth2TokenWithIAM operation returned by the service.
- See Also:
-
createOAuth2TokenWithTokenExchange
default CreateOAuth2TokenWithTokenExchangeResponse createOAuth2TokenWithTokenExchange(CreateOAuth2TokenWithTokenExchangeRequest createOAuth2TokenWithTokenExchangeRequest) throws InvalidGrantException, InvalidScopeException, TooManyRequestsErrorException, ServiceUnavailableException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, SigninException Exchanges a supported token for an OAuth 2.0 access token scoped to a resource, which you can use to access AWS services from applications.
- Parameters:
createOAuth2TokenWithTokenExchangeRequest- Input structure for CreateOAuth2TokenWithTokenExchange operation- Returns:
- Result of the CreateOAuth2TokenWithTokenExchange operation returned by the service.
- See Also:
-
createOAuth2TokenWithTokenExchange
default CreateOAuth2TokenWithTokenExchangeResponse createOAuth2TokenWithTokenExchange(Consumer<CreateOAuth2TokenWithTokenExchangeRequest.Builder> createOAuth2TokenWithTokenExchangeRequest) throws InvalidGrantException, InvalidScopeException, TooManyRequestsErrorException, ServiceUnavailableException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, SigninException Exchanges a supported token for an OAuth 2.0 access token scoped to a resource, which you can use to access AWS services from applications.
This is a convenience which creates an instance of the
CreateOAuth2TokenWithTokenExchangeRequest.Builderavoiding the need to create one manually viaCreateOAuth2TokenWithTokenExchangeRequest.builder()- Parameters:
createOAuth2TokenWithTokenExchangeRequest- AConsumerthat will call methods onCreateOAuth2TokenWithTokenExchangeRequest.Builderto create a request. Input structure for CreateOAuth2TokenWithTokenExchange operation- Returns:
- Result of the CreateOAuth2TokenWithTokenExchange operation returned by the service.
- See Also:
-
deleteConsoleAuthorizationConfiguration
default DeleteConsoleAuthorizationConfigurationResponse deleteConsoleAuthorizationConfiguration(DeleteConsoleAuthorizationConfigurationRequest deleteConsoleAuthorizationConfigurationRequest) throws TooManyRequestsErrorException, ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Delete console authorization configuration with automatic scope detection
- Parameters:
deleteConsoleAuthorizationConfigurationRequest- Input for DeleteConsoleAuthorizationConfiguration operation- Returns:
- Result of the DeleteConsoleAuthorizationConfiguration operation returned by the service.
- See Also:
-
deleteConsoleAuthorizationConfiguration
default DeleteConsoleAuthorizationConfigurationResponse deleteConsoleAuthorizationConfiguration(Consumer<DeleteConsoleAuthorizationConfigurationRequest.Builder> deleteConsoleAuthorizationConfigurationRequest) throws TooManyRequestsErrorException, ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Delete console authorization configuration with automatic scope detection
This is a convenience which creates an instance of the
DeleteConsoleAuthorizationConfigurationRequest.Builderavoiding the need to create one manually viaDeleteConsoleAuthorizationConfigurationRequest.builder()- Parameters:
deleteConsoleAuthorizationConfigurationRequest- AConsumerthat will call methods onDeleteConsoleAuthorizationConfigurationRequest.Builderto create a request. Input for DeleteConsoleAuthorizationConfiguration operation- Returns:
- Result of the DeleteConsoleAuthorizationConfiguration operation returned by the service.
- See Also:
-
deleteResourcePermissionStatement
default DeleteResourcePermissionStatementResponse deleteResourcePermissionStatement(DeleteResourcePermissionStatementRequest deleteResourcePermissionStatementRequest) throws TooManyRequestsErrorException, ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Remove a permission statement from the account's SignIn resource-based policy
- Parameters:
deleteResourcePermissionStatementRequest- Input for DeleteResourcePermissionStatement operation- Returns:
- Result of the DeleteResourcePermissionStatement operation returned by the service.
- See Also:
-
deleteResourcePermissionStatement
default DeleteResourcePermissionStatementResponse deleteResourcePermissionStatement(Consumer<DeleteResourcePermissionStatementRequest.Builder> deleteResourcePermissionStatementRequest) throws TooManyRequestsErrorException, ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Remove a permission statement from the account's SignIn resource-based policy
This is a convenience which creates an instance of the
DeleteResourcePermissionStatementRequest.Builderavoiding the need to create one manually viaDeleteResourcePermissionStatementRequest.builder()- Parameters:
deleteResourcePermissionStatementRequest- AConsumerthat will call methods onDeleteResourcePermissionStatementRequest.Builderto create a request. Input for DeleteResourcePermissionStatement operation- Returns:
- Result of the DeleteResourcePermissionStatement operation returned by the service.
- See Also:
-
getConsoleAuthorizationConfiguration
default GetConsoleAuthorizationConfigurationResponse getConsoleAuthorizationConfiguration(GetConsoleAuthorizationConfigurationRequest getConsoleAuthorizationConfigurationRequest) throws TooManyRequestsErrorException, ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Get console authorization configuration with automatic scope detection
- Parameters:
getConsoleAuthorizationConfigurationRequest- Input for GetConsoleAuthorizationConfiguration operation- Returns:
- Result of the GetConsoleAuthorizationConfiguration operation returned by the service.
- See Also:
-
getConsoleAuthorizationConfiguration
default GetConsoleAuthorizationConfigurationResponse getConsoleAuthorizationConfiguration(Consumer<GetConsoleAuthorizationConfigurationRequest.Builder> getConsoleAuthorizationConfigurationRequest) throws TooManyRequestsErrorException, ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Get console authorization configuration with automatic scope detection
This is a convenience which creates an instance of the
GetConsoleAuthorizationConfigurationRequest.Builderavoiding the need to create one manually viaGetConsoleAuthorizationConfigurationRequest.builder()- Parameters:
getConsoleAuthorizationConfigurationRequest- AConsumerthat will call methods onGetConsoleAuthorizationConfigurationRequest.Builderto create a request. Input for GetConsoleAuthorizationConfiguration operation- Returns:
- Result of the GetConsoleAuthorizationConfiguration operation returned by the service.
- See Also:
-
getResourcePolicy
default GetResourcePolicyResponse getResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) throws TooManyRequestsErrorException, ResourceNotFoundException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Retrieve the account's consolidated SignIn resource-based policy
- Parameters:
getResourcePolicyRequest- Input for GetResourcePolicy operation- Returns:
- Result of the GetResourcePolicy operation returned by the service.
- See Also:
-
getResourcePolicy
default GetResourcePolicyResponse getResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) throws TooManyRequestsErrorException, ResourceNotFoundException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Retrieve the account's consolidated SignIn resource-based policy
This is a convenience which creates an instance of the
GetResourcePolicyRequest.Builderavoiding the need to create one manually viaGetResourcePolicyRequest.builder()- Parameters:
getResourcePolicyRequest- AConsumerthat will call methods onGetResourcePolicyRequest.Builderto create a request. Input for GetResourcePolicy operation- Returns:
- Result of the GetResourcePolicy operation returned by the service.
- See Also:
-
getSession
default GetSessionResponse getSession(GetSessionRequest getSessionRequest) throws TooManyRequestsErrorException, ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Returns the details of a single sign-in session. The session must belong to the identity specified by principalArn, or to the caller if principalArn is omitted. A session that belongs to a different identity or account is reported as not found.
- Parameters:
getSessionRequest- Input for GetSession operation- Returns:
- Result of the GetSession operation returned by the service.
- See Also:
-
getSession
default GetSessionResponse getSession(Consumer<GetSessionRequest.Builder> getSessionRequest) throws TooManyRequestsErrorException, ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Returns the details of a single sign-in session. The session must belong to the identity specified by principalArn, or to the caller if principalArn is omitted. A session that belongs to a different identity or account is reported as not found.
This is a convenience which creates an instance of the
GetSessionRequest.Builderavoiding the need to create one manually viaGetSessionRequest.builder()- Parameters:
getSessionRequest- AConsumerthat will call methods onGetSessionRequest.Builderto create a request. Input for GetSession operation- Returns:
- Result of the GetSession operation returned by the service.
- See Also:
-
introspectOAuth2TokenWithIAM
default IntrospectOAuth2TokenWithIamResponse introspectOAuth2TokenWithIAM(IntrospectOAuth2TokenWithIamRequest introspectOAuth2TokenWithIamRequest) throws TooManyRequestsErrorException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Inspects the metadata and active state of an OAuth 2.0 access token or refresh token.
Implements RFC 7662 OAuth 2.0 Token Introspection over a SigV4-authenticated endpoint. Returns the claims associated with a token issued by AWS Sign-In.
- Parameters:
introspectOAuth2TokenWithIamRequest- Input structure for IntrospectOAuth2TokenWithIAM operationRFC 7662 §2.1 introspection request. Contains the token to inspect and an optional hint about the token's type.
- Returns:
- Result of the IntrospectOAuth2TokenWithIAM operation returned by the service.
- See Also:
-
introspectOAuth2TokenWithIAM
default IntrospectOAuth2TokenWithIamResponse introspectOAuth2TokenWithIAM(Consumer<IntrospectOAuth2TokenWithIamRequest.Builder> introspectOAuth2TokenWithIamRequest) throws TooManyRequestsErrorException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Inspects the metadata and active state of an OAuth 2.0 access token or refresh token.
Implements RFC 7662 OAuth 2.0 Token Introspection over a SigV4-authenticated endpoint. Returns the claims associated with a token issued by AWS Sign-In.
This is a convenience which creates an instance of the
IntrospectOAuth2TokenWithIamRequest.Builderavoiding the need to create one manually viaIntrospectOAuth2TokenWithIamRequest.builder()- Parameters:
introspectOAuth2TokenWithIamRequest- AConsumerthat will call methods onIntrospectOAuth2TokenWithIamRequest.Builderto create a request. Input structure for IntrospectOAuth2TokenWithIAM operationRFC 7662 §2.1 introspection request. Contains the token to inspect and an optional hint about the token's type.
- Returns:
- Result of the IntrospectOAuth2TokenWithIAM operation returned by the service.
- See Also:
-
listResourcePermissionStatements
default ListResourcePermissionStatementsResponse listResourcePermissionStatements(ListResourcePermissionStatementsRequest listResourcePermissionStatementsRequest) throws TooManyRequestsErrorException, ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Retrieve all permission statements in the account's SignIn resource-based policy
- Parameters:
listResourcePermissionStatementsRequest- Input for ListResourcePermissionStatements operation- Returns:
- Result of the ListResourcePermissionStatements operation returned by the service.
- See Also:
-
listResourcePermissionStatements
default ListResourcePermissionStatementsResponse listResourcePermissionStatements(Consumer<ListResourcePermissionStatementsRequest.Builder> listResourcePermissionStatementsRequest) throws TooManyRequestsErrorException, ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Retrieve all permission statements in the account's SignIn resource-based policy
This is a convenience which creates an instance of the
ListResourcePermissionStatementsRequest.Builderavoiding the need to create one manually viaListResourcePermissionStatementsRequest.builder()- Parameters:
listResourcePermissionStatementsRequest- AConsumerthat will call methods onListResourcePermissionStatementsRequest.Builderto create a request. Input for ListResourcePermissionStatements operation- Returns:
- Result of the ListResourcePermissionStatements operation returned by the service.
- See Also:
-
listResourcePermissionStatementsPaginator
default ListResourcePermissionStatementsIterable listResourcePermissionStatementsPaginator(ListResourcePermissionStatementsRequest listResourcePermissionStatementsRequest) throws TooManyRequestsErrorException, ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException This is a variant of
listResourcePermissionStatements(software.amazon.awssdk.services.signin.model.ListResourcePermissionStatementsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.signin.paginators.ListResourcePermissionStatementsIterable responses = client.listResourcePermissionStatementsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.signin.paginators.ListResourcePermissionStatementsIterable responses = client .listResourcePermissionStatementsPaginator(request); for (software.amazon.awssdk.services.signin.model.ListResourcePermissionStatementsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.signin.paginators.ListResourcePermissionStatementsIterable responses = client.listResourcePermissionStatementsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listResourcePermissionStatements(software.amazon.awssdk.services.signin.model.ListResourcePermissionStatementsRequest)operation.- Parameters:
listResourcePermissionStatementsRequest- Input for ListResourcePermissionStatements operation- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listResourcePermissionStatementsPaginator
default ListResourcePermissionStatementsIterable listResourcePermissionStatementsPaginator(Consumer<ListResourcePermissionStatementsRequest.Builder> listResourcePermissionStatementsRequest) throws TooManyRequestsErrorException, ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException This is a variant of
listResourcePermissionStatements(software.amazon.awssdk.services.signin.model.ListResourcePermissionStatementsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.signin.paginators.ListResourcePermissionStatementsIterable responses = client.listResourcePermissionStatementsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.signin.paginators.ListResourcePermissionStatementsIterable responses = client .listResourcePermissionStatementsPaginator(request); for (software.amazon.awssdk.services.signin.model.ListResourcePermissionStatementsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.signin.paginators.ListResourcePermissionStatementsIterable responses = client.listResourcePermissionStatementsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listResourcePermissionStatements(software.amazon.awssdk.services.signin.model.ListResourcePermissionStatementsRequest)operation.
This is a convenience which creates an instance of the
ListResourcePermissionStatementsRequest.Builderavoiding the need to create one manually viaListResourcePermissionStatementsRequest.builder()- Parameters:
listResourcePermissionStatementsRequest- AConsumerthat will call methods onListResourcePermissionStatementsRequest.Builderto create a request. Input for ListResourcePermissionStatements operation- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listSessions
default ListSessionsResponse listSessions(ListSessionsRequest listSessionsRequest) throws TooManyRequestsErrorException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Lists sign-in sessions for an IAM identity in your account. If you omit principalArn, the operation lists the caller's own sessions. Specify a user or role ARN to list that identity's sessions, or specify arn:aws:iam::{account-id}:* to list all sessions in the account. Filters are combined with a logical AND.
- Parameters:
listSessionsRequest- Input for ListSessions operation- Returns:
- Result of the ListSessions operation returned by the service.
- See Also:
-
listSessions
default ListSessionsResponse listSessions(Consumer<ListSessionsRequest.Builder> listSessionsRequest) throws TooManyRequestsErrorException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Lists sign-in sessions for an IAM identity in your account. If you omit principalArn, the operation lists the caller's own sessions. Specify a user or role ARN to list that identity's sessions, or specify arn:aws:iam::{account-id}:* to list all sessions in the account. Filters are combined with a logical AND.
This is a convenience which creates an instance of the
ListSessionsRequest.Builderavoiding the need to create one manually viaListSessionsRequest.builder()- Parameters:
listSessionsRequest- AConsumerthat will call methods onListSessionsRequest.Builderto create a request. Input for ListSessions operation- Returns:
- Result of the ListSessions operation returned by the service.
- See Also:
-
listSessionsPaginator
default ListSessionsIterable listSessionsPaginator(ListSessionsRequest listSessionsRequest) throws TooManyRequestsErrorException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException This is a variant of
listSessions(software.amazon.awssdk.services.signin.model.ListSessionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.signin.paginators.ListSessionsIterable responses = client.listSessionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.signin.paginators.ListSessionsIterable responses = client.listSessionsPaginator(request); for (software.amazon.awssdk.services.signin.model.ListSessionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.signin.paginators.ListSessionsIterable responses = client.listSessionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSessions(software.amazon.awssdk.services.signin.model.ListSessionsRequest)operation.- Parameters:
listSessionsRequest- Input for ListSessions operation- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listSessionsPaginator
default ListSessionsIterable listSessionsPaginator(Consumer<ListSessionsRequest.Builder> listSessionsRequest) throws TooManyRequestsErrorException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException This is a variant of
listSessions(software.amazon.awssdk.services.signin.model.ListSessionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.signin.paginators.ListSessionsIterable responses = client.listSessionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.signin.paginators.ListSessionsIterable responses = client.listSessionsPaginator(request); for (software.amazon.awssdk.services.signin.model.ListSessionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.signin.paginators.ListSessionsIterable responses = client.listSessionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSessions(software.amazon.awssdk.services.signin.model.ListSessionsRequest)operation.
This is a convenience which creates an instance of the
ListSessionsRequest.Builderavoiding the need to create one manually viaListSessionsRequest.builder()- Parameters:
listSessionsRequest- AConsumerthat will call methods onListSessionsRequest.Builderto create a request. Input for ListSessions operation- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
putConsoleAuthorizationConfiguration
default PutConsoleAuthorizationConfigurationResponse putConsoleAuthorizationConfiguration(PutConsoleAuthorizationConfigurationRequest putConsoleAuthorizationConfigurationRequest) throws TooManyRequestsErrorException, ConflictException, ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Enable console authorization configuration with automatic scope detection
- Parameters:
putConsoleAuthorizationConfigurationRequest- Input for PutConsoleAuthorizationConfiguration operation- Returns:
- Result of the PutConsoleAuthorizationConfiguration operation returned by the service.
- See Also:
-
putConsoleAuthorizationConfiguration
default PutConsoleAuthorizationConfigurationResponse putConsoleAuthorizationConfiguration(Consumer<PutConsoleAuthorizationConfigurationRequest.Builder> putConsoleAuthorizationConfigurationRequest) throws TooManyRequestsErrorException, ConflictException, ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Enable console authorization configuration with automatic scope detection
This is a convenience which creates an instance of the
PutConsoleAuthorizationConfigurationRequest.Builderavoiding the need to create one manually viaPutConsoleAuthorizationConfigurationRequest.builder()- Parameters:
putConsoleAuthorizationConfigurationRequest- AConsumerthat will call methods onPutConsoleAuthorizationConfigurationRequest.Builderto create a request. Input for PutConsoleAuthorizationConfiguration operation- Returns:
- Result of the PutConsoleAuthorizationConfiguration operation returned by the service.
- See Also:
-
putResourcePermissionStatement
default PutResourcePermissionStatementResponse putResourcePermissionStatement(PutResourcePermissionStatementRequest putResourcePermissionStatementRequest) throws TooManyRequestsErrorException, ConflictException, ServiceQuotaExceededException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Create a permission statement in the account's SignIn resource-based policy
- Parameters:
putResourcePermissionStatementRequest- Input for PutResourcePermissionStatement operation- Returns:
- Result of the PutResourcePermissionStatement operation returned by the service.
- See Also:
-
putResourcePermissionStatement
default PutResourcePermissionStatementResponse putResourcePermissionStatement(Consumer<PutResourcePermissionStatementRequest.Builder> putResourcePermissionStatementRequest) throws TooManyRequestsErrorException, ConflictException, ServiceQuotaExceededException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Create a permission statement in the account's SignIn resource-based policy
This is a convenience which creates an instance of the
PutResourcePermissionStatementRequest.Builderavoiding the need to create one manually viaPutResourcePermissionStatementRequest.builder()- Parameters:
putResourcePermissionStatementRequest- AConsumerthat will call methods onPutResourcePermissionStatementRequest.Builderto create a request. Input for PutResourcePermissionStatement operation- Returns:
- Result of the PutResourcePermissionStatement operation returned by the service.
- See Also:
-
revokeOAuth2TokenWithIAM
default RevokeOAuth2TokenWithIamResponse revokeOAuth2TokenWithIAM(RevokeOAuth2TokenWithIamRequest revokeOAuth2TokenWithIamRequest) throws TooManyRequestsErrorException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Revokes an OAuth 2.0 refresh token and its associated token chain.
- Parameters:
revokeOAuth2TokenWithIamRequest- Input structure for RevokeOAuth2TokenWithIAM operationRFC 7009 §2.1 revocation request. Contains the refresh_token to revoke.
- Returns:
- Result of the RevokeOAuth2TokenWithIAM operation returned by the service.
- See Also:
-
revokeOAuth2TokenWithIAM
default RevokeOAuth2TokenWithIamResponse revokeOAuth2TokenWithIAM(Consumer<RevokeOAuth2TokenWithIamRequest.Builder> revokeOAuth2TokenWithIamRequest) throws TooManyRequestsErrorException, InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, SigninException Revokes an OAuth 2.0 refresh token and its associated token chain.
This is a convenience which creates an instance of the
RevokeOAuth2TokenWithIamRequest.Builderavoiding the need to create one manually viaRevokeOAuth2TokenWithIamRequest.builder()- Parameters:
revokeOAuth2TokenWithIamRequest- AConsumerthat will call methods onRevokeOAuth2TokenWithIamRequest.Builderto create a request. Input structure for RevokeOAuth2TokenWithIAM operationRFC 7009 §2.1 revocation request. Contains the refresh_token to revoke.
- Returns:
- Result of the RevokeOAuth2TokenWithIAM operation returned by the service.
- See Also:
-
create
Create aSigninClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aSigninClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-