Interface AuthleteApi
-
public interface AuthleteApi
Authlete API.- Author:
- Takahiko Kawasaki
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default AuthorizationResponse
authorization(AuthorizationRequest request)
Call Authlete's/auth/authorization
API.AuthorizationResponse
authorization(AuthorizationRequest request, Options options)
Call Authlete's/auth/authorization
API.default AuthorizationFailResponse
authorizationFail(AuthorizationFailRequest request)
Call Authlete's/auth/authorization/fail
API.AuthorizationFailResponse
authorizationFail(AuthorizationFailRequest request, Options options)
Call Authlete's/auth/authorization/fail
API.default AuthorizationIssueResponse
authorizationIssue(AuthorizationIssueRequest request)
Call Authlete's/auth/authorization/issue
API.AuthorizationIssueResponse
authorizationIssue(AuthorizationIssueRequest request, Options options)
Call Authlete's/auth/authorization/issue
API.default AuthorizationTicketInfoResponse
authorizationTicketInfo(AuthorizationTicketInfoRequest request)
Call Authlete's/auth/authorization/ticket/info
API.AuthorizationTicketInfoResponse
authorizationTicketInfo(AuthorizationTicketInfoRequest request, Options opitons)
Call Authlete's/auth/authorization/ticket/info
API.default AuthorizationTicketUpdateResponse
authorizationTicketUpdate(AuthorizationTicketUpdateRequest request)
Call Authlete's/auth/authorization/ticket/update
API.AuthorizationTicketUpdateResponse
authorizationTicketUpdate(AuthorizationTicketUpdateRequest request, Options options)
Call Authlete's/auth/authorization/ticket/update
API.default BackchannelAuthenticationResponse
backchannelAuthentication(BackchannelAuthenticationRequest request)
Call Authlete's/api/backchannel/authentication
API.BackchannelAuthenticationResponse
backchannelAuthentication(BackchannelAuthenticationRequest request, Options options)
Call Authlete's/api/backchannel/authentication
API.default BackchannelAuthenticationCompleteResponse
backchannelAuthenticationComplete(BackchannelAuthenticationCompleteRequest request)
Call Authlete's/api/backchannel/authentication/complete
API.BackchannelAuthenticationCompleteResponse
backchannelAuthenticationComplete(BackchannelAuthenticationCompleteRequest request, Options options)
Call Authlete's/api/backchannel/authentication/complete
API.default BackchannelAuthenticationFailResponse
backchannelAuthenticationFail(BackchannelAuthenticationFailRequest request)
Call Authlete's/api/backchannel/authentication/fail
API.BackchannelAuthenticationFailResponse
backchannelAuthenticationFail(BackchannelAuthenticationFailRequest request, Options options)
Call Authlete's/api/backchannel/authentication/fail
API.default BackchannelAuthenticationIssueResponse
backchannelAuthenticationIssue(BackchannelAuthenticationIssueRequest request)
Call Authlete's/api/backchannel/authentication/issue
API.BackchannelAuthenticationIssueResponse
backchannelAuthenticationIssue(BackchannelAuthenticationIssueRequest request, Options options)
Call Authlete's/api/backchannel/authentication/issue
API.default Client
createClient(Client client)
Create a client (= call Authlete's/client/create
API).Client
createClient(Client client, Options options)
Create a client (= call Authlete's/client/create
API).default Service
createService(Service service)
Create a service (= call Authlete's/service/create
API).Service
createService(Service service, Options options)
Create a service (= call Authlete's/service/create
API).Service
createServie(Service service)
Deprecated.Use correctly spelledcreateService(Service)
.default CredentialBatchIssueResponse
credentialBatchIssue(CredentialBatchIssueRequest request)
Call Authlete's/vci/batch/issue
API.CredentialBatchIssueResponse
credentialBatchIssue(CredentialBatchIssueRequest request, Options options)
Call Authlete's/vci/batch/issue
API.default CredentialBatchParseResponse
credentialBatchParse(CredentialBatchParseRequest request)
Call Authlete's/vci/batch/parse
API.CredentialBatchParseResponse
credentialBatchParse(CredentialBatchParseRequest request, Options options)
Call Authlete's/vci/batch/parse
API.default CredentialDeferredIssueResponse
credentialDeferredIssue(CredentialDeferredIssueRequest request)
Call Authlete's/vci/deferred/issue
API.CredentialDeferredIssueResponse
credentialDeferredIssue(CredentialDeferredIssueRequest request, Options options)
Call Authlete's/vci/deferred/issue
API.default CredentialDeferredParseResponse
credentialDeferredParse(CredentialDeferredParseRequest request)
Call Authlete's/vci/deferred/parse
API.CredentialDeferredParseResponse
credentialDeferredParse(CredentialDeferredParseRequest request, Options options)
Call Authlete's/vci/deferred/parse
API.default CredentialIssuerJwksResponse
credentialIssuerJwks(CredentialIssuerJwksRequest request)
Call Authlete's/vci/jwks
API.CredentialIssuerJwksResponse
credentialIssuerJwks(CredentialIssuerJwksRequest request, Options options)
Call Authlete's/vci/jwks
API.default CredentialIssuerMetadataResponse
credentialIssuerMetadata(CredentialIssuerMetadataRequest request)
Call Authlete's/vci/metadata
API.CredentialIssuerMetadataResponse
credentialIssuerMetadata(CredentialIssuerMetadataRequest request, Options options)
Call Authlete's/vci/metadata
API.default CredentialJwtIssuerMetadataResponse
credentialJwtIssuerMetadata(CredentialJwtIssuerMetadataRequest request)
Call Authlete's/vci/jwtissuer
API.CredentialJwtIssuerMetadataResponse
credentialJwtIssuerMetadata(CredentialJwtIssuerMetadataRequest request, Options options)
Call Authlete's/vci/jwtissuer
API.default CredentialOfferCreateResponse
credentialOfferCreate(CredentialOfferCreateRequest request)
Call Authlete's/vci/offer/create
API.CredentialOfferCreateResponse
credentialOfferCreate(CredentialOfferCreateRequest request, Options options)
Call Authlete's/vci/offer/create
API.default CredentialOfferInfoResponse
credentialOfferInfo(CredentialOfferInfoRequest request)
Call Authlete's/vci/offer/info
API.CredentialOfferInfoResponse
credentialOfferInfo(CredentialOfferInfoRequest request, Options options)
Call Authlete's/vci/offer/info
API.default CredentialSingleIssueResponse
credentialSingleIssue(CredentialSingleIssueRequest request)
Call Authlete's/vci/single/issue
API.CredentialSingleIssueResponse
credentialSingleIssue(CredentialSingleIssueRequest request, Options options)
Call Authlete's/vci/single/issue
API.default CredentialSingleParseResponse
credentialSingleParse(CredentialSingleParseRequest request)
Call Authlete's/vci/single/parse
API.CredentialSingleParseResponse
credentialSingleParse(CredentialSingleParseRequest request, Options options)
Call Authlete's/vci/single/parse
API.default void
deleteClient(long clientId)
Delete a client (= call Authlete's/client/delete/{clientId}
API).void
deleteClient(long clientId, Options options)
Delete a client (= call Authlete's/client/delete/{clientId}
API).default void
deleteClient(String clientId)
Delete a client (= call Authlete's/client/delete/{clientId}
API).void
deleteClient(String clientId, Options options)
Delete a client (= call Authlete's/client/delete/{clientId}
API).default void
deleteClientAuthorization(long clientId, String subject)
Delete all existing access tokens issued to the client application by the end-user.void
deleteClientAuthorization(long clientId, String subject, Options options)
Delete all existing access tokens issued to the client application by the end-user.default void
deleteGrantedScopes(long clientId, String subject)
Delete DB records about the set of scopes that a user has granted to a client application (call Authlete's/client/granted_scopes/delete/{clientId}
API).void
deleteGrantedScopes(long clientId, String subject, Options options)
Delete DB records about the set of scopes that a user has granted to a client application (call Authlete's/client/granted_scopes/delete/{clientId}
API).default void
deleteRequestableScopes(long clientId)
Clear the requestable scopes assigned to a client (= call Authlete's/client/extension/requestable_scopes/delete/{clientId}
API).void
deleteRequestableScopes(long clientId, Options options)
Clear the requestable scopes assigned to a client (= call Authlete's/client/extension/requestable_scopes/delete/{clientId}
API).default void
deleteService(long apiKey)
Delete a service (= call Authlete's/service/delete/{apiKey}
API).void
deleteService(long apiKey, Options options)
Delete a service (= call Authlete's/service/delete/{apiKey}
API).default DeviceAuthorizationResponse
deviceAuthorization(DeviceAuthorizationRequest request)
Call Authlete's/api/device/authorization
API.DeviceAuthorizationResponse
deviceAuthorization(DeviceAuthorizationRequest request, Options options)
Call Authlete's/api/device/authorization
API.default DeviceCompleteResponse
deviceComplete(DeviceCompleteRequest request)
Call Authlete's/api/device/complete
API.DeviceCompleteResponse
deviceComplete(DeviceCompleteRequest request, Options options)
Call Authlete's/api/device/complete
API.default DeviceVerificationResponse
deviceVerification(DeviceVerificationRequest request)
Call Authlete's/api/device/verification
API.DeviceVerificationResponse
deviceVerification(DeviceVerificationRequest request, Options options)
Call Authlete's/api/device/verification
API.default ClientRegistrationResponse
dynamicClientDelete(ClientRegistrationRequest request)
Delete a dynamically registered client (= call Authlete's/client/registration/delete
API).ClientRegistrationResponse
dynamicClientDelete(ClientRegistrationRequest request, Options options)
Delete a dynamically registered client (= call Authlete's/client/registration/delete
API).default ClientRegistrationResponse
dynamicClientGet(ClientRegistrationRequest request)
Get a dynamically registered client (= call Authlete's/client/registration/get
API).ClientRegistrationResponse
dynamicClientGet(ClientRegistrationRequest request, Options options)
Get a dynamically registered client (= call Authlete's/client/registration/get
API).default ClientRegistrationResponse
dynamicClientRegister(ClientRegistrationRequest request)
Register a client (= call Authlete's/client/registration
API).ClientRegistrationResponse
dynamicClientRegister(ClientRegistrationRequest request, Options options)
Register a client (= call Authlete's/client/registration
API).default ClientRegistrationResponse
dynamicClientUpdate(ClientRegistrationRequest request)
Update a dynamically registered client (= call Authlete's/client/registration/update
API).ClientRegistrationResponse
dynamicClientUpdate(ClientRegistrationRequest request, Options options)
Update a dynamically registered client (= call Authlete's/client/registration/update
API).default Map<String,String>
echo(Map<String,String> parameters)
Call Authlete's/api/misc/echo
API.Map<String,String>
echo(Map<String,String> parameters, Options option)
Call Authlete's/api/misc/echo
API.default FederationConfigurationResponse
federationConfiguration(FederationConfigurationRequest request)
Call Authlete's/federation/configuration
API.FederationConfigurationResponse
federationConfiguration(FederationConfigurationRequest request, Options options)
Call Authlete's/federation/configuration
API.default FederationRegistrationResponse
federationRegistration(FederationRegistrationRequest request)
Call Authlete's/federation/registration
API.FederationRegistrationResponse
federationRegistration(FederationRegistrationRequest request, Options options)
Call Authlete's/federation/registration
API.default Client
getClient(long clientId)
Get a client (= call Authlete's/client/get/{clientId}
API).Client
getClient(long clientId, Options options)
Get a client (= call Authlete's/client/get/{clientId}
API).default Client
getClient(String clientId)
Get a client (= call Authlete's/client/get/{clientId}
API).Client
getClient(String clientId, Options options)
Get a client (= call Authlete's/client/get/{clientId}
API).default AuthorizedClientListResponse
getClientAuthorizationList(ClientAuthorizationGetListRequest request)
Get a list of client applications authorized by the end-user.AuthorizedClientListResponse
getClientAuthorizationList(ClientAuthorizationGetListRequest request, Options options)
Get a list of client applications authorized by the end-user.default ClientListResponse
getClientList()
Get the list of client applications that belong to the service (= call Authlete's/client/get/list
API).default ClientListResponse
getClientList(int start, int end)
Get the list of client applications that belong to the service (= call Authlete's/client/get/list
API withstart
andend
parameters).ClientListResponse
getClientList(int start, int end, Options options)
Get the list of client applications that belong to the service (= call Authlete's/client/get/list
API withstart
andend
parameters).ClientListResponse
getClientList(Options options)
Get the list of client applications that belong to the service (= call Authlete's/client/get/list
API).default ClientListResponse
getClientList(String developer)
Get the list of client applications that belong to the developer (= call Authlete's/client/get/list
API withdeveloper
parameter).default ClientListResponse
getClientList(String developer, int start, int end)
Get the list of client applications (= call Authlete's/client/get/list
API withdeveloper
,start
andend
parameters).ClientListResponse
getClientList(String developer, int start, int end, Options options)
Get the list of client applications (= call Authlete's/client/get/list
API withdeveloper
,start
andend
parameters).ClientListResponse
getClientList(String developer, Options options)
Get the list of client applications that belong to the developer (= call Authlete's/client/get/list
API withdeveloper
parameter).default GrantedScopesGetResponse
getGrantedScopes(long clientId, String subject)
Get the set of scopes that a user has granted to a client application (call Authlete's/client/granted_scopes/get/{clientId}
API).GrantedScopesGetResponse
getGrantedScopes(long clientId, String subject, Options options)
Get the set of scopes that a user has granted to a client application (call Authlete's/client/granted_scopes/get/{clientId}
API).default String[]
getRequestableScopes(long clientId)
Get the requestable scopes assigned to a client (= call Authlete's/client/extension/requestable_scopes/get/{clientId}
API).String[]
getRequestableScopes(long clientId, Options options)
Get the requestable scopes assigned to a client (= call Authlete's/client/extension/requestable_scopes/get/{clientId}
API).default Service
getService(long apiKey)
Get a service (= call Authlete's/service/get/{apiKey}
API).Service
getService(long apiKey, Options options)
Get a service (= call Authlete's/service/get/{apiKey}
API).default String
getServiceConfiguration()
Get the configuration of the service in JSON format that complies with OpenID Connect Discovery 1.0.default String
getServiceConfiguration(boolean pretty)
Get the configuration of the service in JSON format that complies with OpenID Connect Discovery 1.0.String
getServiceConfiguration(boolean pretty, Options options)
Get the configuration of the service in JSON format that complies with OpenID Connect Discovery 1.0.String
getServiceConfiguration(Options options)
Get the configuration of the service in JSON format that complies with OpenID Connect Discovery 1.0.default String
getServiceConfiguration(ServiceConfigurationRequest request)
Get the configuration of the service in JSON format that complies with OpenID Connect Discovery 1.0.String
getServiceConfiguration(ServiceConfigurationRequest request, Options options)
Get the configuration of the service in JSON format that complies with OpenID Connect Discovery 1.0.default String
getServiceJwks()
Get the JWK Set of a service.default String
getServiceJwks(boolean pretty, boolean includePrivateKeys)
Get the JWK Set of a service.String
getServiceJwks(boolean pretty, boolean includePrivateKeys, Options options)
Get the JWK Set of a service.String
getServiceJwks(Options options)
Get the JWK Set of a service.default ServiceListResponse
getServiceList()
Get the list of services that belong to the service owner (= call Authlete's/service/get/list
API).default ServiceListResponse
getServiceList(int start, int end)
Get the list of services that belong to the service owner (= call Authlete's/service/get/list
API withstart
andend
parameters).ServiceListResponse
getServiceList(int start, int end, Options options)
Get the list of services that belong to the service owner (= call Authlete's/service/get/list
API withstart
andend
parameters).ServiceListResponse
getServiceList(Options options)
Get the list of services that belong to the service owner (= call Authlete's/service/get/list
API).Settings
getSettings()
Get the reference to the settings of thisAuthleteApi
implementation.default TokenCreateBatchStatusResponse
getTokenCreateBatchStatus(String requestId)
Call Authlete's/auth/token/create/batch/status
API.TokenCreateBatchStatusResponse
getTokenCreateBatchStatus(String requestId, Options options)
Call Authlete's/auth/token/create/batch/status
API.default TokenListResponse
getTokenList()
Get the list of access tokens that are associated with the service (= call Authlete's/auth/token/get/list
API).default TokenListResponse
getTokenList(int start, int end)
Get the list of access tokens that are associated with the service (= call Authlete's/auth/token/get/list
API withstart
andend
parameters).TokenListResponse
getTokenList(int start, int end, Options options)
Get the list of access tokens that are associated with the service (= call Authlete's/auth/token/get/list
API withstart
andend
parameters).default TokenListResponse
getTokenList(int start, int end, TokenStatus tokenStatus)
Get the list of access tokens that are associated with the service (= call Authlete's/auth/token/get/list
API withstart
andend
parameters).TokenListResponse
getTokenList(int start, int end, TokenStatus tokenStatus, Options options)
Get the list of access tokens that are associated with the service (= call Authlete's/auth/token/get/list
API withstart
andend
parameters).TokenListResponse
getTokenList(Options options)
Get the list of access tokens that are associated with the service (= call Authlete's/auth/token/get/list
API).default TokenListResponse
getTokenList(TokenStatus tokenStatus)
Get the list of access tokens that are associated with the service (= call Authlete's/auth/token/get/list
API).TokenListResponse
getTokenList(TokenStatus tokenStatus, Options options)
Get the list of access tokens that are associated with the service (= call Authlete's/auth/token/get/list
API).default TokenListResponse
getTokenList(String clientIdentifier, String subject)
Get the list of access tokens (= call Authlete's/auth/token/get/list
API withclientIdentifier
andsubject
).default TokenListResponse
getTokenList(String clientIdentifier, String subject, int start, int end)
Get the list of access tokens (= call Authlete's/auth/token/get/list
API withclientIdentifier
,subject
,start
andend
parameters).TokenListResponse
getTokenList(String clientIdentifier, String subject, int start, int end, Options options)
Get the list of access tokens (= call Authlete's/auth/token/get/list
API withclientIdentifier
,subject
,start
andend
parameters).default TokenListResponse
getTokenList(String clientIdentifier, String subject, int start, int end, TokenStatus tokenStatus)
Get the list of access tokens (= call Authlete's/auth/token/get/list
API withclientIdentifier
,subject
,start
andend
parameters).TokenListResponse
getTokenList(String clientIdentifier, String subject, int start, int end, TokenStatus tokenStatus, Options options)
Get the list of access tokens (= call Authlete's/auth/token/get/list
API withclientIdentifier
,subject
,start
andend
parameters).TokenListResponse
getTokenList(String clientIdentifier, String subject, Options options)
Get the list of access tokens (= call Authlete's/auth/token/get/list
API withclientIdentifier
andsubject
).default TokenListResponse
getTokenList(String clientIdentifier, String subject, TokenStatus tokenStatus)
Get the list of access tokens (= call Authlete's/auth/token/get/list
API withclientIdentifier
andsubject
).TokenListResponse
getTokenList(String clientIdentifier, String subject, TokenStatus tokenStatus, Options options)
Get the list of access tokens (= call Authlete's/auth/token/get/list
API withclientIdentifier
andsubject
).default GMResponse
gm(GMRequest request)
Call Authlete's/api/gm
API.GMResponse
gm(GMRequest request, Options options)
Call Authlete's/api/gm
API.default HskResponse
hskCreate(HskCreateRequest request)
Call Authlete's/api/hsk/create
API.HskResponse
hskCreate(HskCreateRequest request, Options options)
Call Authlete's/api/hsk/create
API.default HskResponse
hskDelete(String handle)
Call Authlete's/api/hsk/delete/{handle}
API.HskResponse
hskDelete(String handle, Options options)
Call Authlete's/api/hsk/delete/{handle}
API.default HskResponse
hskGet(String handle)
Call Authlete's/api/hsk/get/{handle}
API.HskResponse
hskGet(String handle, Options options)
Call Authlete's/api/hsk/get/{handle}
API.default HskListResponse
hskGetList()
Call Authlete's/api/hsk/get/list
API.HskListResponse
hskGetList(Options options)
Call Authlete's/api/hsk/get/list
API.default IDTokenReissueResponse
idTokenReissue(IDTokenReissueRequest request)
Call Authlete's/idtoken/reissue
API.IDTokenReissueResponse
idTokenReissue(IDTokenReissueRequest request, Options options)
Call Authlete's/idtoken/reissue
API.default IntrospectionResponse
introspection(IntrospectionRequest request)
Call Authlete's/auth/introspection
API.IntrospectionResponse
introspection(IntrospectionRequest request, Options options)
Call Authlete's/auth/introspection
API.default PushedAuthReqResponse
pushAuthorizationRequest(PushedAuthReqRequest request)
Call Authlete's/api/pushed_auth_req
API.PushedAuthReqResponse
pushAuthorizationRequest(PushedAuthReqRequest request, Options options)
Call Authlete's/api/pushed_auth_req
API.default ClientSecretRefreshResponse
refreshClientSecret(long clientId)
Refresh the client secret of a client.ClientSecretRefreshResponse
refreshClientSecret(long clientId, Options options)
Refresh the client secret of a client.default ClientSecretRefreshResponse
refreshClientSecret(String clientIdentifier)
Refresh the client secret of a client.ClientSecretRefreshResponse
refreshClientSecret(String clientIdentifier, Options options)
Refresh the client secret of a client.default RevocationResponse
revocation(RevocationRequest request)
Call Authlete's/auth/revocation
API.RevocationResponse
revocation(RevocationRequest request, Options options)
Call Authlete's/auth/revocation
API.default String[]
setRequestableScopes(long clientId, String[] scopes)
Set the requestable scopes assigned to a client (= call Authlete's/client/extension/requestable_scopes/update/{clientId}
API).String[]
setRequestableScopes(long clientId, String[] scopes, Options options)
Set the requestable scopes assigned to a client (= call Authlete's/client/extension/requestable_scopes/update/{clientId}
API).default StandardIntrospectionResponse
standardIntrospection(StandardIntrospectionRequest request)
Call Authlete's/auth/introspection/standard
API.StandardIntrospectionResponse
standardIntrospection(StandardIntrospectionRequest request, Options options)
Call Authlete's/auth/introspection/standard
API.default TokenResponse
token(TokenRequest request)
Call Authlete's/auth/token
API.TokenResponse
token(TokenRequest request, Options options)
Call Authlete's/auth/token
API.default TokenCreateResponse
tokenCreate(TokenCreateRequest request)
Call Authlete's/auth/token/create
API.TokenCreateResponse
tokenCreate(TokenCreateRequest request, Options options)
Call Authlete's/auth/token/create
API.default TokenCreateBatchResponse
tokenCreateBatch(TokenCreateRequest[] request, boolean dryRun)
Call Authlete's/auth/token/create/batch
API.TokenCreateBatchResponse
tokenCreateBatch(TokenCreateRequest[] request, boolean dryRun, Options options)
Call Authlete's/auth/token/create/batch
API.default void
tokenDelete(String token)
Call Authlete's/auth/token/delete
API.void
tokenDelete(String token, Options options)
Call Authlete's/auth/token/delete
API.default TokenFailResponse
tokenFail(TokenFailRequest request)
Call Authlete's/auth/token/fail
API.TokenFailResponse
tokenFail(TokenFailRequest request, Options options)
Call Authlete's/auth/token/fail
API.default TokenIssueResponse
tokenIssue(TokenIssueRequest request)
Call Authlete's/auth/token/issue
API.TokenIssueResponse
tokenIssue(TokenIssueRequest request, Options options)
Call Authlete's/auth/token/issue
API.default TokenRevokeResponse
tokenRevoke(TokenRevokeRequest request)
Call Authlete's/auth/token/revoke
API.TokenRevokeResponse
tokenRevoke(TokenRevokeRequest request, Options options)
Call Authlete's/auth/token/revoke
API.default TokenUpdateResponse
tokenUpdate(TokenUpdateRequest request)
Call Authlete's/auth/token/update
API.TokenUpdateResponse
tokenUpdate(TokenUpdateRequest request, Options options)
Call Authlete's/auth/token/update
API.default Client
updateClient(Client client)
Update a client (= call Authlete's/client/update/{clientId}
API).Client
updateClient(Client client, Options options)
Update a client (= call Authlete's/client/update/{clientId}
API).default void
updateClientAuthorization(long clientId, ClientAuthorizationUpdateRequest request)
Update attributes of all existing access tokens issued to the client application by the end-user.void
updateClientAuthorization(long clientId, ClientAuthorizationUpdateRequest request, Options options)
Update attributes of all existing access tokens issued to the client application by the end-user.default void
updateClientLockFlag(String clientIdentifier, boolean clientLocked)
Update the lock flag of a client application.void
updateClientLockFlag(String clientIdentifier, boolean clientLocked, Options options)
Update the lock flag of a client application.default ClientSecretUpdateResponse
updateClientSecret(long clientId, String clientSecret)
Update the client secret of a client.ClientSecretUpdateResponse
updateClientSecret(long clientId, String clientSecret, Options options)
Update the client secret of a client.default ClientSecretUpdateResponse
updateClientSecret(String clientIdentifier, String clientSecret)
Update the client secret of a client.ClientSecretUpdateResponse
updateClientSecret(String clientIdentifier, String clientSecret, Options options)
Update the client secret of a client.default Service
updateService(Service service)
Update a service (= call Authlete's/service/update/{apiKey}
API).Service
updateService(Service service, Options options)
Update a service (= call Authlete's/service/update/{apiKey}
API).default UserInfoResponse
userinfo(UserInfoRequest request)
Call Authlete's/auth/userinfo
API.UserInfoResponse
userinfo(UserInfoRequest request, Options options)
Call Authlete's/auth/userinfo
API.default UserInfoIssueResponse
userinfoIssue(UserInfoIssueRequest request)
Call Authlete's/auth/userinfo/issue
API.UserInfoIssueResponse
userinfoIssue(UserInfoIssueRequest request, Options options)
Call Authlete's/auth/userinfo/issue
API.default JoseVerifyResponse
verifyJose(JoseVerifyRequest request)
Verify a JOSE object.JoseVerifyResponse
verifyJose(JoseVerifyRequest request, Options options)
Verify a JOSE object.
-
-
-
Method Detail
-
authorization
default AuthorizationResponse authorization(AuthorizationRequest request) throws AuthleteApiException
Call Authlete's/auth/authorization
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
authorization
AuthorizationResponse authorization(AuthorizationRequest request, Options options) throws AuthleteApiException
Call Authlete's/auth/authorization
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
authorizationFail
default AuthorizationFailResponse authorizationFail(AuthorizationFailRequest request) throws AuthleteApiException
Call Authlete's/auth/authorization/fail
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
authorizationFail
AuthorizationFailResponse authorizationFail(AuthorizationFailRequest request, Options options) throws AuthleteApiException
Call Authlete's/auth/authorization/fail
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
authorizationIssue
default AuthorizationIssueResponse authorizationIssue(AuthorizationIssueRequest request) throws AuthleteApiException
Call Authlete's/auth/authorization/issue
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
authorizationIssue
AuthorizationIssueResponse authorizationIssue(AuthorizationIssueRequest request, Options options) throws AuthleteApiException
Call Authlete's/auth/authorization/issue
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
token
default TokenResponse token(TokenRequest request) throws AuthleteApiException
Call Authlete's/auth/token
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
token
TokenResponse token(TokenRequest request, Options options) throws AuthleteApiException
Call Authlete's/auth/token
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
tokenCreate
default TokenCreateResponse tokenCreate(TokenCreateRequest request) throws AuthleteApiException
Call Authlete's/auth/token/create
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 1.13
-
tokenCreate
TokenCreateResponse tokenCreate(TokenCreateRequest request, Options options) throws AuthleteApiException
Call Authlete's/auth/token/create
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
tokenDelete
default void tokenDelete(String token) throws AuthleteApiException
Call Authlete's/auth/token/delete
API.- Parameters:
token
- An access token or its hash value.- Throws:
AuthleteApiException
- Since:
- 2.81
-
tokenDelete
void tokenDelete(String token, Options options) throws AuthleteApiException
Call Authlete's/auth/token/delete
API.- Parameters:
token
- An access token or its hash value.options
- Request options.- Throws:
AuthleteApiException
- Since:
- 4.15
-
tokenFail
default TokenFailResponse tokenFail(TokenFailRequest request) throws AuthleteApiException
Call Authlete's/auth/token/fail
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
tokenFail
TokenFailResponse tokenFail(TokenFailRequest request, Options options) throws AuthleteApiException
Call Authlete's/auth/token/fail
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
tokenIssue
default TokenIssueResponse tokenIssue(TokenIssueRequest request) throws AuthleteApiException
Call Authlete's/auth/token/issue
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
tokenIssue
TokenIssueResponse tokenIssue(TokenIssueRequest request, Options options) throws AuthleteApiException
Call Authlete's/auth/token/issue
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
tokenRevoke
default TokenRevokeResponse tokenRevoke(TokenRevokeRequest request) throws AuthleteApiException
Call Authlete's/auth/token/revoke
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 3.26, Authlete 2.2.29
-
tokenRevoke
TokenRevokeResponse tokenRevoke(TokenRevokeRequest request, Options options) throws AuthleteApiException
Call Authlete's/auth/token/revoke
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
tokenUpdate
default TokenUpdateResponse tokenUpdate(TokenUpdateRequest request) throws AuthleteApiException
Call Authlete's/auth/token/update
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 1.34
-
tokenUpdate
TokenUpdateResponse tokenUpdate(TokenUpdateRequest request, Options options) throws AuthleteApiException
Call Authlete's/auth/token/update
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
getTokenList
default TokenListResponse getTokenList() throws AuthleteApiException
Get the list of access tokens that are associated with the service (= call Authlete's/auth/token/get/list
API).This method uses the default range to limit the result set of the query. Use
getTokenList(int, int, TokenStatus)
to specify the range explicitly.- Returns:
- The list of access tokens.
- Throws:
AuthleteApiException
- Since:
- 2.29
-
getTokenList
TokenListResponse getTokenList(Options options) throws AuthleteApiException
Get the list of access tokens that are associated with the service (= call Authlete's/auth/token/get/list
API).This method uses the default range to limit the result set of the query. Use
getTokenList(int, int, TokenStatus)
to specify the range explicitly.- Parameters:
options
- Request options.- Returns:
- The list of access tokens.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
getTokenList
default TokenListResponse getTokenList(TokenStatus tokenStatus) throws AuthleteApiException
Get the list of access tokens that are associated with the service (= call Authlete's/auth/token/get/list
API).This method uses the default range to limit the result set of the query. Use
getTokenList(int, int, TokenStatus)
to specify the range explicitly.- Parameters:
tokenStatus
- The status of the targeted access tokens, ornull
.- Returns:
- The list of access tokens.
- Throws:
AuthleteApiException
- Since:
- 3.97
-
getTokenList
TokenListResponse getTokenList(TokenStatus tokenStatus, Options options) throws AuthleteApiException
Get the list of access tokens that are associated with the service (= call Authlete's/auth/token/get/list
API).This method uses the default range to limit the result set of the query. Use
getTokenList(int, int, TokenStatus)
to specify the range explicitly.- Parameters:
tokenStatus
- The status of the targeted access tokens, ornull
.options
- Request options.- Returns:
- The list of access tokens.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
getTokenList
default TokenListResponse getTokenList(String clientIdentifier, String subject) throws AuthleteApiException
Get the list of access tokens (= call Authlete's/auth/token/get/list
API withclientIdentifier
andsubject
).When both
clientIdentifier
andsubject
arenull
, the list of access tokens that are associated with the service is returned.When
clientIdentifier
isnull
but thesubject
is notnull
, the list of access tokens that are associated with the subject is returned.When
clientIdentifier
is notnull
but thesubject
isnull
, the list of access tokens that are associated with the client application is returned.When neither
clientIdentifier
norsubject
isnull
, the list of access tokens that are associated with the client application and the subject is returned.This method uses the default range to limit the result set of the query. Use
getTokenList(String, String, int, int, TokenStatus)
to specify the range explicitly.- Parameters:
clientIdentifier
- The identifier of the client (client ID or client ID alias) associated with the targeted access tokens, ornull
.subject
- The subject of the targeted access tokens, ornull
.- Returns:
- The list of access tokens.
- Throws:
AuthleteApiException
- Since:
- 2.29
-
getTokenList
TokenListResponse getTokenList(String clientIdentifier, String subject, Options options) throws AuthleteApiException
Get the list of access tokens (= call Authlete's/auth/token/get/list
API withclientIdentifier
andsubject
).When both
clientIdentifier
andsubject
arenull
, the list of access tokens that are associated with the service is returned.When
clientIdentifier
isnull
but thesubject
is notnull
, the list of access tokens that are associated with the subject is returned.When
clientIdentifier
is notnull
but thesubject
isnull
, the list of access tokens that are associated with the client application is returned.When neither
clientIdentifier
norsubject
isnull
, the list of access tokens that are associated with the client application and the subject is returned.This method uses the default range to limit the result set of the query. Use
getTokenList(String, String, int, int, TokenStatus)
to specify the range explicitly.- Parameters:
clientIdentifier
- The identifier of the client (client ID or client ID alias) associated with the targeted access tokens, ornull
.subject
- The subject of the targeted access tokens, ornull
.options
- Request options.- Returns:
- The list of access tokens.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
getTokenList
default TokenListResponse getTokenList(String clientIdentifier, String subject, TokenStatus tokenStatus) throws AuthleteApiException
Get the list of access tokens (= call Authlete's/auth/token/get/list
API withclientIdentifier
andsubject
).When both
clientIdentifier
andsubject
arenull
, the list of access tokens that are associated with the service is returned.When
clientIdentifier
isnull
but thesubject
is notnull
, the list of access tokens that are associated with the subject is returned.When
clientIdentifier
is notnull
but thesubject
isnull
, the list of access tokens that are associated with the client application is returned.When neither
clientIdentifier
norsubject
isnull
, the list of access tokens that are associated with the client application and the subject is returned.This method uses the default range to limit the result set of the query. Use
getTokenList(String, String, int, int, TokenStatus)
to specify the range explicitly.- Parameters:
clientIdentifier
- The identifier of the client (client ID or client ID alias) associated with the targeted access tokens, ornull
.subject
- The subject of the targeted access tokens, ornull
.tokenStatus
- The status of the targeted access tokens, ornull
.- Returns:
- The list of access tokens.
- Throws:
AuthleteApiException
- Since:
- 3.97
-
getTokenList
TokenListResponse getTokenList(String clientIdentifier, String subject, TokenStatus tokenStatus, Options options) throws AuthleteApiException
Get the list of access tokens (= call Authlete's/auth/token/get/list
API withclientIdentifier
andsubject
).When both
clientIdentifier
andsubject
arenull
, the list of access tokens that are associated with the service is returned.When
clientIdentifier
isnull
but thesubject
is notnull
, the list of access tokens that are associated with the subject is returned.When
clientIdentifier
is notnull
but thesubject
isnull
, the list of access tokens that are associated with the client application is returned.When neither
clientIdentifier
norsubject
isnull
, the list of access tokens that are associated with the client application and the subject is returned.This method uses the default range to limit the result set of the query. Use
getTokenList(String, String, int, int, TokenStatus)
to specify the range explicitly.- Parameters:
clientIdentifier
- The identifier of the client (client ID or client ID alias) associated with the targeted access tokens, ornull
.subject
- The subject of the targeted access tokens, ornull
.tokenStatus
- The status of the targeted access tokens, ornull
.options
- Request options.- Returns:
- The list of access tokens.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
getTokenList
default TokenListResponse getTokenList(int start, int end) throws AuthleteApiException
Get the list of access tokens that are associated with the service (= call Authlete's/auth/token/get/list
API withstart
andend
parameters).The pair of
start
andend
parameters denotes the range of the result set of the query. For example, ifstart
is 5 andend
is 7, the pair makes a range from 5 (inclusive) to 7 (exclusive) and the response will contain (at most) 2 pieces of access token information, i.e., information about the 6th and the 7th access tokens (the index starts from 0).If
end - start
is equal to or less than 0,getAccessTokens()
method of the response returnsnull
. But even in such a case,getTotalCount()
method returns the total count. In other words, if you want to get just the total count, you can write the code as shown below.int totalCount = api.
getTokenList(0, 0)
.getTotalCount()
;- Parameters:
start
- The start index (inclusive) of the result set of the query. Must not be negative.end
- The end index (exclusive) of the result set of the query. Must not be negative.- Returns:
- The list of access tokens.
- Throws:
AuthleteApiException
- Since:
- 2.29
-
getTokenList
TokenListResponse getTokenList(int start, int end, Options options) throws AuthleteApiException
Get the list of access tokens that are associated with the service (= call Authlete's/auth/token/get/list
API withstart
andend
parameters).The pair of
start
andend
parameters denotes the range of the result set of the query. For example, ifstart
is 5 andend
is 7, the pair makes a range from 5 (inclusive) to 7 (exclusive) and the response will contain (at most) 2 pieces of access token information, i.e., information about the 6th and the 7th access tokens (the index starts from 0).If
end - start
is equal to or less than 0,getAccessTokens()
method of the response returnsnull
. But even in such a case,getTotalCount()
method returns the total count. In other words, if you want to get just the total count, you can write the code as shown below.int totalCount = api.
getTokenList(0, 0)
.getTotalCount()
;- Parameters:
start
- The start index (inclusive) of the result set of the query. Must not be negative.end
- The end index (exclusive) of the result set of the query. Must not be negative.options
- Request options.- Returns:
- The list of access tokens.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
getTokenList
default TokenListResponse getTokenList(int start, int end, TokenStatus tokenStatus) throws AuthleteApiException
Get the list of access tokens that are associated with the service (= call Authlete's/auth/token/get/list
API withstart
andend
parameters).The pair of
start
andend
parameters denotes the range of the result set of the query. For example, ifstart
is 5 andend
is 7, the pair makes a range from 5 (inclusive) to 7 (exclusive) and the response will contain (at most) 2 pieces of access token information, i.e., information about the 6th and the 7th access tokens (the index starts from 0).If
end - start
is equal to or less than 0,getAccessTokens()
method of the response returnsnull
. But even in such a case,getTotalCount()
method returns the total count. In other words, if you want to get just the total count, you can write the code as shown below.int totalCount = api.
getTokenList(0, 0, TokenStatus.ALL)
.getTotalCount()
;- Parameters:
start
- The start index (inclusive) of the result set of the query. Must not be negative.end
- The end index (exclusive) of the result set of the query. Must not be negative.tokenStatus
- The status of the targeted access tokens, ornull
.- Returns:
- The list of access tokens.
- Throws:
AuthleteApiException
- Since:
- 3.97
-
getTokenList
TokenListResponse getTokenList(int start, int end, TokenStatus tokenStatus, Options options) throws AuthleteApiException
Get the list of access tokens that are associated with the service (= call Authlete's/auth/token/get/list
API withstart
andend
parameters).The pair of
start
andend
parameters denotes the range of the result set of the query. For example, ifstart
is 5 andend
is 7, the pair makes a range from 5 (inclusive) to 7 (exclusive) and the response will contain (at most) 2 pieces of access token information, i.e., information about the 6th and the 7th access tokens (the index starts from 0).If
end - start
is equal to or less than 0,getAccessTokens()
method of the response returnsnull
. But even in such a case,getTotalCount()
method returns the total count. In other words, if you want to get just the total count, you can write the code as shown below.int totalCount = api.
getTokenList(0, 0, TokenStatus.ALL)
.getTotalCount()
;- Parameters:
start
- The start index (inclusive) of the result set of the query. Must not be negative.end
- The end index (exclusive) of the result set of the query. Must not be negative.tokenStatus
- The status of the targeted access tokens, ornull
.options
- Request options.- Returns:
- The list of access tokens.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
getTokenList
default TokenListResponse getTokenList(String clientIdentifier, String subject, int start, int end) throws AuthleteApiException
Get the list of access tokens (= call Authlete's/auth/token/get/list
API withclientIdentifier
,subject
,start
andend
parameters).When both
clientIdentifier
andsubject
arenull
, the list of access tokens that are associated with the service is returned.When
clientIdentifier
isnull
but thesubject
is notnull
, the list of access tokens that are associated with the subject is returned.When
clientIdentifier
is notnull
but thesubject
isnull
, the list of access tokens that are associated with the client application is returned.When neither
clientIdentifier
norsubject
isnull
, the list of access tokens that are associated with the client application and the subject is returned.The pair of
start
andend
parameters denotes the range of the result set of the query. For example, ifstart
is 5 andend
is 7, the pair makes a range from 5 (inclusive) to 7 (exclusive) and the response will contain (at most) 2 pieces of access token information, i.e., information about the 6th and the 7th access tokens (the index starts from 0).If
end - start
is equal to or less than 0,getAccessTokens()
method of the response returnsnull
. But even in such a case,getTotalCount()
method returns the total count. In other words, if you want to get just the total count, you can write the code as shown below.int totalCount = api.
getTokenList(clientIdentifier, subject, 0, 0)
.getTotalCount()
;- Parameters:
clientIdentifier
- The identifier of the client (client ID or client ID alias) associated with the targeted access tokens, ornull
.subject
- The subject of the targeted access tokens, ornull
.start
- The start index (inclusive) of the result set of the query. Must not be negative.end
- The end index (exclusive) of the result set of the query. Must not be negative.- Returns:
- The list of access tokens.
- Throws:
AuthleteApiException
- Since:
- 2.29
-
getTokenList
TokenListResponse getTokenList(String clientIdentifier, String subject, int start, int end, Options options) throws AuthleteApiException
Get the list of access tokens (= call Authlete's/auth/token/get/list
API withclientIdentifier
,subject
,start
andend
parameters).When both
clientIdentifier
andsubject
arenull
, the list of access tokens that are associated with the service is returned.When
clientIdentifier
isnull
but thesubject
is notnull
, the list of access tokens that are associated with the subject is returned.When
clientIdentifier
is notnull
but thesubject
isnull
, the list of access tokens that are associated with the client application is returned.When neither
clientIdentifier
norsubject
isnull
, the list of access tokens that are associated with the client application and the subject is returned.The pair of
start
andend
parameters denotes the range of the result set of the query. For example, ifstart
is 5 andend
is 7, the pair makes a range from 5 (inclusive) to 7 (exclusive) and the response will contain (at most) 2 pieces of access token information, i.e., information about the 6th and the 7th access tokens (the index starts from 0).If
end - start
is equal to or less than 0,getAccessTokens()
method of the response returnsnull
. But even in such a case,getTotalCount()
method returns the total count. In other words, if you want to get just the total count, you can write the code as shown below.int totalCount = api.
getTokenList(clientIdentifier, subject, 0, 0)
.getTotalCount()
;- Parameters:
clientIdentifier
- The identifier of the client (client ID or client ID alias) associated with the targeted access tokens, ornull
.subject
- The subject of the targeted access tokens, ornull
.start
- The start index (inclusive) of the result set of the query. Must not be negative.end
- The end index (exclusive) of the result set of the query. Must not be negative.options
- Request options.- Returns:
- The list of access tokens.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
getTokenList
default TokenListResponse getTokenList(String clientIdentifier, String subject, int start, int end, TokenStatus tokenStatus) throws AuthleteApiException
Get the list of access tokens (= call Authlete's/auth/token/get/list
API withclientIdentifier
,subject
,start
andend
parameters).When both
clientIdentifier
andsubject
arenull
, the list of access tokens that are associated with the service is returned.When
clientIdentifier
isnull
but thesubject
is notnull
, the list of access tokens that are associated with the subject is returned.When
clientIdentifier
is notnull
but thesubject
isnull
, the list of access tokens that are associated with the client application is returned.When neither
clientIdentifier
norsubject
isnull
, the list of access tokens that are associated with the client application and the subject is returned.The pair of
start
andend
parameters denotes the range of the result set of the query. For example, ifstart
is 5 andend
is 7, the pair makes a range from 5 (inclusive) to 7 (exclusive) and the response will contain (at most) 2 pieces of access token information, i.e., information about the 6th and the 7th access tokens (the index starts from 0).If
end - start
is equal to or less than 0,getAccessTokens()
method of the response returnsnull
. But even in such a case,getTotalCount()
method returns the total count. In other words, if you want to get just the total count, you can write the code as shown below.int totalCount = api.
getTokenList(clientIdentifier, subject, 0, 0, TokenStatus.ALL)
.getTotalCount()
;- Parameters:
clientIdentifier
- The identifier of the client (client ID or client ID alias) associated with the targeted access tokens, ornull
.subject
- The subject of the targeted access tokens, ornull
.start
- The start index (inclusive) of the result set of the query. Must not be negative.end
- The end index (exclusive) of the result set of the query. Must not be negative.tokenStatus
- The status of the targeted access tokens, ornull
.- Returns:
- The list of access tokens.
- Throws:
AuthleteApiException
- Since:
- 3.97
-
getTokenList
TokenListResponse getTokenList(String clientIdentifier, String subject, int start, int end, TokenStatus tokenStatus, Options options) throws AuthleteApiException
Get the list of access tokens (= call Authlete's/auth/token/get/list
API withclientIdentifier
,subject
,start
andend
parameters).When both
clientIdentifier
andsubject
arenull
, the list of access tokens that are associated with the service is returned.When
clientIdentifier
isnull
but thesubject
is notnull
, the list of access tokens that are associated with the subject is returned.When
clientIdentifier
is notnull
but thesubject
isnull
, the list of access tokens that are associated with the client application is returned.When neither
clientIdentifier
norsubject
isnull
, the list of access tokens that are associated with the client application and the subject is returned.The pair of
start
andend
parameters denotes the range of the result set of the query. For example, ifstart
is 5 andend
is 7, the pair makes a range from 5 (inclusive) to 7 (exclusive) and the response will contain (at most) 2 pieces of access token information, i.e., information about the 6th and the 7th access tokens (the index starts from 0).If
end - start
is equal to or less than 0,getAccessTokens()
method of the response returnsnull
. But even in such a case,getTotalCount()
method returns the total count. In other words, if you want to get just the total count, you can write the code as shown below.int totalCount = api.
getTokenList(clientIdentifier, subject, 0, 0, TokenStatus.ALL)
.getTotalCount()
;- Parameters:
clientIdentifier
- The identifier of the client (client ID or client ID alias) associated with the targeted access tokens, ornull
.subject
- The subject of the targeted access tokens, ornull
.start
- The start index (inclusive) of the result set of the query. Must not be negative.end
- The end index (exclusive) of the result set of the query. Must not be negative.tokenStatus
- The status of the targeted access tokens, ornull
.options
- Request options.- Returns:
- The list of access tokens.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
revocation
default RevocationResponse revocation(RevocationRequest request) throws AuthleteApiException
Call Authlete's/auth/revocation
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 1.16
-
revocation
RevocationResponse revocation(RevocationRequest request, Options options) throws AuthleteApiException
Call Authlete's/auth/revocation
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
userinfo
default UserInfoResponse userinfo(UserInfoRequest request) throws AuthleteApiException
Call Authlete's/auth/userinfo
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
userinfo
UserInfoResponse userinfo(UserInfoRequest request, Options options) throws AuthleteApiException
Call Authlete's/auth/userinfo
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
userinfoIssue
default UserInfoIssueResponse userinfoIssue(UserInfoIssueRequest request) throws AuthleteApiException
Call Authlete's/auth/userinfo/issue
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
userinfoIssue
UserInfoIssueResponse userinfoIssue(UserInfoIssueRequest request, Options options) throws AuthleteApiException
Call Authlete's/auth/userinfo/issue
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
introspection
default IntrospectionResponse introspection(IntrospectionRequest request) throws AuthleteApiException
Call Authlete's/auth/introspection
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
introspection
IntrospectionResponse introspection(IntrospectionRequest request, Options options) throws AuthleteApiException
Call Authlete's/auth/introspection
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
standardIntrospection
default StandardIntrospectionResponse standardIntrospection(StandardIntrospectionRequest request) throws AuthleteApiException
Call Authlete's/auth/introspection/standard
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 2.7
-
standardIntrospection
StandardIntrospectionResponse standardIntrospection(StandardIntrospectionRequest request, Options options) throws AuthleteApiException
Call Authlete's/auth/introspection/standard
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
createService
default Service createService(Service service) throws AuthleteApiException
Create a service (= call Authlete's/service/create
API).- Parameters:
service
- Information about a service to create.- Returns:
- Information about a newly created service.
- Throws:
AuthleteApiException
-
createService
Service createService(Service service, Options options) throws AuthleteApiException
Create a service (= call Authlete's/service/create
API).- Parameters:
service
- Information about a service to create.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
createServie
@Deprecated Service createServie(Service service) throws AuthleteApiException
Deprecated.Use correctly spelledcreateService(Service)
.- Throws:
AuthleteApiException
-
deleteService
default void deleteService(long apiKey) throws AuthleteApiException
Delete a service (= call Authlete's/service/delete/{apiKey}
API).- Parameters:
apiKey
- The API key of the service.- Throws:
AuthleteApiException
-
deleteService
void deleteService(long apiKey, Options options) throws AuthleteApiException
Delete a service (= call Authlete's/service/delete/{apiKey}
API).- Parameters:
apiKey
- The API key of the service.options
- Request options.- Throws:
AuthleteApiException
- Since:
- 4.15
-
getService
default Service getService(long apiKey) throws AuthleteApiException
Get a service (= call Authlete's/service/get/{apiKey}
API).- Parameters:
apiKey
- The API key of the service.- Returns:
- Information about the service.
- Throws:
AuthleteApiException
-
getService
Service getService(long apiKey, Options options) throws AuthleteApiException
Get a service (= call Authlete's/service/get/{apiKey}
API).- Parameters:
apiKey
- The API key of the service.options
- Request options.- Returns:
- Information about the service.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
getServiceList
default ServiceListResponse getServiceList() throws AuthleteApiException
Get the list of services that belong to the service owner (= call Authlete's/service/get/list
API).This method uses the default range to limit the result set of the query. Use
getServiceList(int, int)
to specify the range explicitly.- Returns:
- The list of services.
- Throws:
AuthleteApiException
-
getServiceList
ServiceListResponse getServiceList(Options options) throws AuthleteApiException
Get the list of services that belong to the service owner (= call Authlete's/service/get/list
API).This method uses the default range to limit the result set of the query. Use
getServiceList(int, int)
to specify the range explicitly.- Parameters:
options
- Request options.- Returns:
- The list of services.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
getServiceList
default ServiceListResponse getServiceList(int start, int end) throws AuthleteApiException
Get the list of services that belong to the service owner (= call Authlete's/service/get/list
API withstart
andend
parameters).The pair of
start
andend
parameters denotes the range of the result set of the query. For example, ifstart
is 5 andend
is 7, the pair makes a range from 5 (inclusive) to 7 (exclusive) and the response will contain (at most) 2 pieces of service information, i.e., information about the 6th and the 7th services (the index starts from 0).If
end - start
is equal to or less than 0,getServices()
method of the response returnsnull
. But even in such a case,getTotalCount()
method returns the total count. In other words, if you want to get just the total count, you can write the code as shown below.int totalCount = api.
getServiceList(0, 0)
.getTotalCount()
;- Parameters:
start
- The start index (inclusive) of the result set of the query. Must not be negative.end
- The end index (exclusive) of the result set of the query. Must not be negative.- Returns:
- The list of services.
- Throws:
AuthleteApiException
-
getServiceList
ServiceListResponse getServiceList(int start, int end, Options options) throws AuthleteApiException
Get the list of services that belong to the service owner (= call Authlete's/service/get/list
API withstart
andend
parameters).The pair of
start
andend
parameters denotes the range of the result set of the query. For example, ifstart
is 5 andend
is 7, the pair makes a range from 5 (inclusive) to 7 (exclusive) and the response will contain (at most) 2 pieces of service information, i.e., information about the 6th and the 7th services (the index starts from 0).If
end - start
is equal to or less than 0,getServices()
method of the response returnsnull
. But even in such a case,getTotalCount()
method returns the total count. In other words, if you want to get just the total count, you can write the code as shown below.int totalCount = api.
getServiceList(0, 0)
.getTotalCount()
;- Parameters:
start
- The start index (inclusive) of the result set of the query. Must not be negative.end
- The end index (exclusive) of the result set of the query. Must not be negative.options
- Request options.- Returns:
- The list of services.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
updateService
default Service updateService(Service service) throws AuthleteApiException
Update a service (= call Authlete's/service/update/{apiKey}
API).service.
getApiKey()
must return the correct API key of the service.- Parameters:
service
- Information about a service to update.- Returns:
- Information about the updated service.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
updateService
Service updateService(Service service, Options options) throws AuthleteApiException
Update a service (= call Authlete's/service/update/{apiKey}
API).service.
getApiKey()
must return the correct API key of the service.- Parameters:
service
- Information about a service to update.options
- Request options.- Returns:
- Information about the updated service.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
getServiceJwks
default String getServiceJwks() throws AuthleteApiException
Get the JWK Set of a service.This method is an alias of
getServiceJwks
(true, false)
.- Returns:
- JSON representation of the JWK Set of the service.
null
is returned when the service has registered neither content or URI of its JWK Set. - Throws:
AuthleteApiException
- Since:
- 1.13
- See Also:
- RFC 7517: JSON Web Key (JWK)
-
getServiceJwks
String getServiceJwks(Options options) throws AuthleteApiException
Get the JWK Set of a service.This method is an alias of
getServiceJwks
(true, false)
.- Parameters:
options
- Request options.- Returns:
- JSON representation of the JWK Set of the service.
null
is returned when the service has registered neither content or URI of its JWK Set. - Throws:
AuthleteApiException
- Since:
- 4.15
- See Also:
- RFC 7517: JSON Web Key (JWK)
-
getServiceJwks
default String getServiceJwks(boolean pretty, boolean includePrivateKeys) throws AuthleteApiException
Get the JWK Set of a service.You can register either or both (1) the content of a JWK set and (2) the URI of a JWK set. The table below describes how registration combinations affect the response from this method. For example, the table indicates that the content of the JWK Set is returned with a status code 200 if both (content and URI) are registered.
Service JWK Set Response Content URI Status Code Return Value Exception Registered Registered 200 OK JWK Set Not Raised Registered Not Registered 200 OK JWK Set Not Raised Not Registered Registered 204 No Content null
Not Raised 302 Found * Raised Not Registered Not Registered 204 No Content null
Not Raised 302 Found is returned when the request URI and the registered JWK Set URI are different. In this case,
Location
header contains the registered JWK Set URI. If you need the value of the URI, catchAuthleteApiException
and callgetResponseHeaders()
.- Parameters:
pretty
-true
to get the JSON in pretty format.includePrivateKeys
-true
to keep private keys in the JSON.false
to remove private keys.- Returns:
- JSON representation of the JWK Set of the service.
null
is returned when the service has registered neither content or URI of its JWK Set. - Throws:
AuthleteApiException
- Since:
- 1.28
- See Also:
- RFC 7517: JSON Web Key (JWK)
-
getServiceJwks
String getServiceJwks(boolean pretty, boolean includePrivateKeys, Options options) throws AuthleteApiException
Get the JWK Set of a service.You can register either or both (1) the content of a JWK set and (2) the URI of a JWK set. The table below describes how registration combinations affect the response from this method. For example, the table indicates that the content of the JWK Set is returned with a status code 200 if both (content and URI) are registered.
Service JWK Set Response Content URI Status Code Return Value Exception Registered Registered 200 OK JWK Set Not Raised Registered Not Registered 200 OK JWK Set Not Raised Not Registered Registered 204 No Content null
Not Raised 302 Found * Raised Not Registered Not Registered 204 No Content null
Not Raised 302 Found is returned when the request URI and the registered JWK Set URI are different. In this case,
Location
header contains the registered JWK Set URI. If you need the value of the URI, catchAuthleteApiException
and callgetResponseHeaders()
.- Parameters:
pretty
-true
to get the JSON in pretty format.includePrivateKeys
-true
to keep private keys in the JSON.false
to remove private keys.options
- Request options.- Returns:
- JSON representation of the JWK Set of the service.
null
is returned when the service has registered neither content or URI of its JWK Set. - Throws:
AuthleteApiException
- Since:
- 4.15
- See Also:
- RFC 7517: JSON Web Key (JWK)
-
getServiceConfiguration
default String getServiceConfiguration() throws AuthleteApiException
Get the configuration of the service in JSON format that complies with OpenID Connect Discovery 1.0.This method is an alias of
getServiceConfiguration
(true)
.- Returns:
- The configuration of the service in JSON format.
- Throws:
AuthleteApiException
- Since:
- 1.27
- See Also:
- OpenID Connect Discovery 1.0
-
getServiceConfiguration
String getServiceConfiguration(Options options) throws AuthleteApiException
Get the configuration of the service in JSON format that complies with OpenID Connect Discovery 1.0.This method is an alias of
getServiceConfiguration
(true)
.- Parameters:
options
- Request options.- Returns:
- The configuration of the service in JSON format.
- Throws:
AuthleteApiException
- Since:
- 4.15
- See Also:
- OpenID Connect Discovery 1.0
-
getServiceConfiguration
default String getServiceConfiguration(boolean pretty) throws AuthleteApiException
Get the configuration of the service in JSON format that complies with OpenID Connect Discovery 1.0.The value returned from this method can be used as the response body from
/.well-known/openid-configuration
. See "4. Obtaining OpenID Provider Configuration Information" in OpenID Connect Discovery 1.0 for details.- Parameters:
pretty
-true
to get the JSON in pretty format.- Returns:
- The configuration of the service in JSON format.
- Throws:
AuthleteApiException
- Since:
- 1.28
- See Also:
- OpenID Connect Discovery 1.0
-
getServiceConfiguration
String getServiceConfiguration(boolean pretty, Options options) throws AuthleteApiException
Get the configuration of the service in JSON format that complies with OpenID Connect Discovery 1.0.The value returned from this method can be used as the response body from
/.well-known/openid-configuration
. See "4. Obtaining OpenID Provider Configuration Information" in OpenID Connect Discovery 1.0 for details.- Parameters:
pretty
-true
to get the JSON in pretty format.options
- Request options.- Returns:
- The configuration of the service in JSON format.
- Throws:
AuthleteApiException
- Since:
- 4.15
- See Also:
- OpenID Connect Discovery 1.0
-
getServiceConfiguration
default String getServiceConfiguration(ServiceConfigurationRequest request) throws AuthleteApiException
Get the configuration of the service in JSON format that complies with OpenID Connect Discovery 1.0.The value returned from this method can be used as the response body from
/.well-known/openid-configuration
. See "4. Obtaining OpenID Provider Configuration Information" in OpenID Connect Discovery 1.0 for details.- Parameters:
request
- Request parameters passed to the API.- Returns:
- The configuration of the service in JSON format.
- Throws:
AuthleteApiException
- Since:
- 3.44
-
getServiceConfiguration
String getServiceConfiguration(ServiceConfigurationRequest request, Options options) throws AuthleteApiException
Get the configuration of the service in JSON format that complies with OpenID Connect Discovery 1.0.The value returned from this method can be used as the response body from
/.well-known/openid-configuration
. See "4. Obtaining OpenID Provider Configuration Information" in OpenID Connect Discovery 1.0 for details.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- The configuration of the service in JSON format.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
createClient
default Client createClient(Client client) throws AuthleteApiException
Create a client (= call Authlete's/client/create
API).- Parameters:
client
- Information about a client to create.- Returns:
- Information about a newly created client.
- Throws:
AuthleteApiException
-
createClient
Client createClient(Client client, Options options) throws AuthleteApiException
Create a client (= call Authlete's/client/create
API).- Parameters:
client
- Information about a client to create.options
- Request options.- Returns:
- Information about a newly created client.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
dynamicClientRegister
default ClientRegistrationResponse dynamicClientRegister(ClientRegistrationRequest request) throws AuthleteApiException
Register a client (= call Authlete's/client/registration
API). This method can be used to implement a client registration endpoint that complies with RFC 7591 (OAuth 2.0 Dynamic Client Registration Protocol).- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 2.41
-
dynamicClientRegister
ClientRegistrationResponse dynamicClientRegister(ClientRegistrationRequest request, Options options) throws AuthleteApiException
Register a client (= call Authlete's/client/registration
API). This method can be used to implement a client registration endpoint that complies with RFC 7591 (OAuth 2.0 Dynamic Client Registration Protocol).- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
dynamicClientGet
default ClientRegistrationResponse dynamicClientGet(ClientRegistrationRequest request) throws AuthleteApiException
Get a dynamically registered client (= call Authlete's/client/registration/get
API). This method can be used to implement a client registration management endpoint that complies with RFC 7592 (OAuth 2.0 Dynamic Client Registration Management Protocol).- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 2.41
-
dynamicClientGet
ClientRegistrationResponse dynamicClientGet(ClientRegistrationRequest request, Options options) throws AuthleteApiException
Get a dynamically registered client (= call Authlete's/client/registration/get
API). This method can be used to implement a client registration management endpoint that complies with RFC 7592 (OAuth 2.0 Dynamic Client Registration Management Protocol).- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
dynamicClientUpdate
default ClientRegistrationResponse dynamicClientUpdate(ClientRegistrationRequest request) throws AuthleteApiException
Update a dynamically registered client (= call Authlete's/client/registration/update
API). This method can be used to implement a client registration management endpoint that complies with RFC 7592 (OAuth 2.0 Dynamic Client Registration Management Protocol).- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 2.41
-
dynamicClientUpdate
ClientRegistrationResponse dynamicClientUpdate(ClientRegistrationRequest request, Options options) throws AuthleteApiException
Update a dynamically registered client (= call Authlete's/client/registration/update
API). This method can be used to implement a client registration management endpoint that complies with RFC 7592 (OAuth 2.0 Dynamic Client Registration Management Protocol).- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
dynamicClientDelete
default ClientRegistrationResponse dynamicClientDelete(ClientRegistrationRequest request) throws AuthleteApiException
Delete a dynamically registered client (= call Authlete's/client/registration/delete
API). This method can be used to implement a client registration management endpoint that complies with RFC 7592 (OAuth 2.0 Dynamic Client Registration Management Protocol).- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 2.41
-
dynamicClientDelete
ClientRegistrationResponse dynamicClientDelete(ClientRegistrationRequest request, Options options) throws AuthleteApiException
Delete a dynamically registered client (= call Authlete's/client/registration/delete
API). This method can be used to implement a client registration management endpoint that complies with RFC 7592 (OAuth 2.0 Dynamic Client Registration Management Protocol).- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
deleteClient
default void deleteClient(long clientId) throws AuthleteApiException
Delete a client (= call Authlete's/client/delete/{clientId}
API).- Parameters:
clientId
- Client ID.- Throws:
AuthleteApiException
-
deleteClient
void deleteClient(long clientId, Options options) throws AuthleteApiException
Delete a client (= call Authlete's/client/delete/{clientId}
API).- Parameters:
clientId
- Client ID.options
- Request options.- Throws:
AuthleteApiException
- Since:
- 4.15
-
deleteClient
default void deleteClient(String clientId) throws AuthleteApiException
Delete a client (= call Authlete's/client/delete/{clientId}
API).- Parameters:
clientId
- Client ID.- Throws:
AuthleteApiException
- Since:
- 2.51
-
deleteClient
void deleteClient(String clientId, Options options) throws AuthleteApiException
Delete a client (= call Authlete's/client/delete/{clientId}
API).- Parameters:
clientId
- Client ID.options
- Request options.- Throws:
AuthleteApiException
- Since:
- 4.15
-
getClient
default Client getClient(long clientId) throws AuthleteApiException
Get a client (= call Authlete's/client/get/{clientId}
API).- Parameters:
clientId
- The client ID.- Returns:
- Information about the client.
- Throws:
AuthleteApiException
-
getClient
Client getClient(long clientId, Options options) throws AuthleteApiException
Get a client (= call Authlete's/client/get/{clientId}
API).- Parameters:
clientId
- The client ID.options
- Request options.- Returns:
- Information about the client.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
getClient
default Client getClient(String clientId) throws AuthleteApiException
Get a client (= call Authlete's/client/get/{clientId}
API).- Parameters:
clientId
- The client ID.- Returns:
- Information about the client.
- Throws:
AuthleteApiException
- Since:
- 2.51
-
getClient
Client getClient(String clientId, Options options) throws AuthleteApiException
Get a client (= call Authlete's/client/get/{clientId}
API).- Parameters:
clientId
- The client ID.options
- Request options.- Returns:
- Information about the client.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
getClientList
default ClientListResponse getClientList() throws AuthleteApiException
Get the list of client applications that belong to the service (= call Authlete's/client/get/list
API).This method uses the default range to limit the result set of the query. Use
getClientList(int, int)
to specify the range explicitly.- Returns:
- The list of clients.
- Throws:
AuthleteApiException
-
getClientList
ClientListResponse getClientList(Options options) throws AuthleteApiException
Get the list of client applications that belong to the service (= call Authlete's/client/get/list
API).This method uses the default range to limit the result set of the query. Use
getClientList(int, int)
to specify the range explicitly.- Parameters:
options
- Request options.- Returns:
- The list of clients.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
getClientList
default ClientListResponse getClientList(String developer) throws AuthleteApiException
Get the list of client applications that belong to the developer (= call Authlete's/client/get/list
API withdeveloper
parameter).When
developer
isnull
, the list of client applications that belong to the service is returned.This method uses the default range to limit the result set of the query. Use
getClientList(String, int, int)
to specify the range explicitly.- Parameters:
developer
- The developer of the targeted client applications.- Returns:
- The list of clients.
- Throws:
AuthleteApiException
-
getClientList
ClientListResponse getClientList(String developer, Options options) throws AuthleteApiException
Get the list of client applications that belong to the developer (= call Authlete's/client/get/list
API withdeveloper
parameter).When
developer
isnull
, the list of client applications that belong to the service is returned.This method uses the default range to limit the result set of the query. Use
getClientList(String, int, int)
to specify the range explicitly.- Parameters:
developer
- The developer of the targeted client applications.options
- Request options.- Returns:
- The list of clients.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
getClientList
default ClientListResponse getClientList(int start, int end) throws AuthleteApiException
Get the list of client applications that belong to the service (= call Authlete's/client/get/list
API withstart
andend
parameters).- Parameters:
start
- The start index (inclusive) of the result set of the query. Must not be negative.end
- The end index (exclusive) of the result set of the query. Must not be negative.- Returns:
- The list of clients.
- Throws:
AuthleteApiException
-
getClientList
ClientListResponse getClientList(int start, int end, Options options) throws AuthleteApiException
Get the list of client applications that belong to the service (= call Authlete's/client/get/list
API withstart
andend
parameters).- Parameters:
start
- The start index (inclusive) of the result set of the query. Must not be negative.end
- The end index (exclusive) of the result set of the query. Must not be negative.options
- Request options.- Returns:
- The list of clients.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
getClientList
default ClientListResponse getClientList(String developer, int start, int end) throws AuthleteApiException
Get the list of client applications (= call Authlete's/client/get/list
API withdeveloper
,start
andend
parameters).When
developer
isnull
, the list of client applications that belong to the service is returned. Otherwise, whendeveloper
is notnull
, the list of client applications that belong to the developer is returned.The pair of
start
andend
parameters denotes the range of the result set of the query. For example, ifstart
is 5 andend
is 7, the pair makes a range from 5 (inclusive) to 7 (exclusive) and the response will contain (at most) 2 pieces of client information, i.e., information about the 6th and the 7th applications (the index starts from 0).If
end - start
is equal to or less than 0,getClients()
method of the response returnsnull
. But even in such a case,getTotalCount()
method returns the total count. In other words, if you want to get just the total count, you can write the code as shown below.int totalCount = api.
getClientList(developer, 0, 0)
.getTotalCount()
;- Parameters:
developer
- The developer of the targeted client applications, ornull
to get the list of client applications of the entire service.start
- The start index (inclusive) of the result set of the query. Must not be negative.end
- The end index (exclusive) of the result set of the query. Must not be negative.- Returns:
- The list of client applications.
- Throws:
AuthleteApiException
-
getClientList
ClientListResponse getClientList(String developer, int start, int end, Options options) throws AuthleteApiException
Get the list of client applications (= call Authlete's/client/get/list
API withdeveloper
,start
andend
parameters).When
developer
isnull
, the list of client applications that belong to the service is returned. Otherwise, whendeveloper
is notnull
, the list of client applications that belong to the developer is returned.The pair of
start
andend
parameters denotes the range of the result set of the query. For example, ifstart
is 5 andend
is 7, the pair makes a range from 5 (inclusive) to 7 (exclusive) and the response will contain (at most) 2 pieces of client information, i.e., information about the 6th and the 7th applications (the index starts from 0).If
end - start
is equal to or less than 0,getClients()
method of the response returnsnull
. But even in such a case,getTotalCount()
method returns the total count. In other words, if you want to get just the total count, you can write the code as shown below.int totalCount = api.
getClientList(developer, 0, 0)
.getTotalCount()
;- Parameters:
developer
- The developer of the targeted client applications, ornull
to get the list of client applications of the entire service.start
- The start index (inclusive) of the result set of the query. Must not be negative.end
- The end index (exclusive) of the result set of the query. Must not be negative.options
- Request options.- Returns:
- The list of clients.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
updateClient
default Client updateClient(Client client) throws AuthleteApiException
Update a client (= call Authlete's/client/update/{clientId}
API).client.
getClientId()
must return the correct client ID.- Parameters:
client
- Information about a client to update.- Returns:
- Information about the updated client.
- Throws:
AuthleteApiException
-
updateClient
Client updateClient(Client client, Options options) throws AuthleteApiException
Update a client (= call Authlete's/client/update/{clientId}
API).client.
getClientId()
must return the correct client ID.- Parameters:
client
- Information about a client to update.options
- Request options.- Returns:
- Information about the updated client.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
getRequestableScopes
default String[] getRequestableScopes(long clientId) throws AuthleteApiException
Get the requestable scopes assigned to a client (= call Authlete's/client/extension/requestable_scopes/get/{clientId}
API).- Parameters:
clientId
- A client ID.- Returns:
- null
- Requestable scopes are not assigned to the client, meaning that the client can request any scopes supported by the service.
- An empty array
-
The client cannot request any scopes, meaning that values
included in the
scope
request parameter in authorization requests and token requests are all ignored. - An array of scope names
- The array represents the set of scopes that the client is allowed to request.
- Throws:
AuthleteApiException
- Since:
- 1.34
-
getRequestableScopes
String[] getRequestableScopes(long clientId, Options options) throws AuthleteApiException
Get the requestable scopes assigned to a client (= call Authlete's/client/extension/requestable_scopes/get/{clientId}
API).- Parameters:
clientId
- A client ID.options
- Request options.- Returns:
- null
- Requestable scopes are not assigned to the client, meaning that the client can request any scopes supported by the service.
- An empty array
-
The client cannot request any scopes, meaning that values
included in the
scope
request parameter in authorization requests and token requests are all ignored. - An array of scope names
- The array represents the set of scopes that the client is allowed to request.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
setRequestableScopes
default String[] setRequestableScopes(long clientId, String[] scopes) throws AuthleteApiException
Set the requestable scopes assigned to a client (= call Authlete's/client/extension/requestable_scopes/update/{clientId}
API).Calling this method with
scopes=null
has the same effect as callingdeleteRequestableScopes(clientId)
.Since the version 1.39, the
Client
class hasextension
property and information about "Requestable Scopes per Client" is included in the property. So, calling/client/update/{clientId}
API is enough and recommended. In other words, calling/client/extension/requestable_scopes/update/{clientId}
API is no longer recommended.Known issue: The JSON parser used by the implementation of
/client/extension/requestable_scopes/update/{clientId}
API treats an empty array as null and it does not provide any configuration method to change the behavior. Until the JSON parser is replaced, passing an empty array to the API leads to the same result as passingnull
to the API.- Parameters:
clientId
- A client ID.scopes
-- null
- Requestable scopes assigned to the client are cleared. This results in that the client can request any scopes supported by the service.
- An empty array
-
The client cannot request any scopes, meaning that values included
in the
scope
request parameter in authorization requests and token requests are all ignored. - An array of scope names
- The given array is used as the set of scopes that the client is allowed to request.
- Returns:
- The resultant set of requestable scopes. The value may be different from the one given to this method.
- Throws:
AuthleteApiException
- Since:
- 1.34
-
setRequestableScopes
String[] setRequestableScopes(long clientId, String[] scopes, Options options) throws AuthleteApiException
Set the requestable scopes assigned to a client (= call Authlete's/client/extension/requestable_scopes/update/{clientId}
API).Calling this method with
scopes=null
has the same effect as callingdeleteRequestableScopes(clientId)
.Since the version 1.39, the
Client
class hasextension
property and information about "Requestable Scopes per Client" is included in the property. So, calling/client/update/{clientId}
API is enough and recommended. In other words, calling/client/extension/requestable_scopes/update/{clientId}
API is no longer recommended.Known issue: The JSON parser used by the implementation of
/client/extension/requestable_scopes/update/{clientId}
API treats an empty array as null and it does not provide any configuration method to change the behavior. Until the JSON parser is replaced, passing an empty array to the API leads to the same result as passingnull
to the API.- Parameters:
clientId
- A client ID.options
- Request options.scopes
-- null
- Requestable scopes assigned to the client are cleared. This results in that the client can request any scopes supported by the service.
- An empty array
-
The client cannot request any scopes, meaning that values included
in the
scope
request parameter in authorization requests and token requests are all ignored. - An array of scope names
- The given array is used as the set of scopes that the client is allowed to request.
- Returns:
- The resultant set of requestable scopes. The value may be different from the one given to this method.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
deleteRequestableScopes
default void deleteRequestableScopes(long clientId) throws AuthleteApiException
Clear the requestable scopes assigned to a client (= call Authlete's/client/extension/requestable_scopes/delete/{clientId}
API).Calling this method has the same effect as calling
setRequestableScopes(clientId, null)
.- Parameters:
clientId
- A client ID.- Throws:
AuthleteApiException
- Since:
- 1.34
-
deleteRequestableScopes
void deleteRequestableScopes(long clientId, Options options) throws AuthleteApiException
Clear the requestable scopes assigned to a client (= call Authlete's/client/extension/requestable_scopes/delete/{clientId}
API).Calling this method has the same effect as calling
setRequestableScopes(clientId, null)
.- Parameters:
clientId
- A client ID.options
- Request options.- Throws:
AuthleteApiException
- Since:
- 4.15
-
getGrantedScopes
default GrantedScopesGetResponse getGrantedScopes(long clientId, String subject)
Get the set of scopes that a user has granted to a client application (call Authlete's/client/granted_scopes/get/{clientId}
API).A dedicated Authlete server provides a functionality to remember the set of scopes that a user has granted to a client application. A remembered set is NOT removed from the database even after all existing access tokens associated with the combination of the client application and the subject have expired. Note that this functionality is not provided by the shared Authlete server.
- Parameters:
clientId
- A client ID.subject
- A unique user identifier.- Returns:
- Information about scopes granted to a client application by a user.
- Since:
- 1.39
-
getGrantedScopes
GrantedScopesGetResponse getGrantedScopes(long clientId, String subject, Options options)
Get the set of scopes that a user has granted to a client application (call Authlete's/client/granted_scopes/get/{clientId}
API).A dedicated Authlete server provides a functionality to remember the set of scopes that a user has granted to a client application. A remembered set is NOT removed from the database even after all existing access tokens associated with the combination of the client application and the subject have expired. Note that this functionality is not provided by the shared Authlete server.
- Parameters:
clientId
- A client ID.subject
- A unique user identifier.options
- Request options.- Returns:
- Information about scopes granted to a client application by a user.
- Since:
- 4.15
-
deleteGrantedScopes
default void deleteGrantedScopes(long clientId, String subject)
Delete DB records about the set of scopes that a user has granted to a client application (call Authlete's/client/granted_scopes/delete/{clientId}
API).Even if you delete records about granted scopes by calling this API, existing access tokens are not deleted and scopes of existing access tokens are not changed.
Please call this method if the user identified by the subject is deleted from your system. Otherwise, garbage data continue to exist in the database.
- Parameters:
clientId
- A client ID.subject
- A unique user identifier.- Since:
- 1.40
-
deleteGrantedScopes
void deleteGrantedScopes(long clientId, String subject, Options options)
Delete DB records about the set of scopes that a user has granted to a client application (call Authlete's/client/granted_scopes/delete/{clientId}
API).Even if you delete records about granted scopes by calling this API, existing access tokens are not deleted and scopes of existing access tokens are not changed.
Please call this method if the user identified by the subject is deleted from your system. Otherwise, garbage data continue to exist in the database.
- Parameters:
clientId
- A client ID.subject
- A unique user identifier.options
- Request options.- Since:
- 4.15
-
deleteClientAuthorization
default void deleteClientAuthorization(long clientId, String subject) throws AuthleteApiException
Delete all existing access tokens issued to the client application by the end-user.- Parameters:
clientId
- The ID of the target client application.subject
- The subject (= unique identifier) of the end-user. Must not benull
.- Throws:
AuthleteApiException
- Since:
- 2.1
-
deleteClientAuthorization
void deleteClientAuthorization(long clientId, String subject, Options options) throws AuthleteApiException
Delete all existing access tokens issued to the client application by the end-user.- Parameters:
clientId
- The ID of the target client application.subject
- The subject (= unique identifier) of the end-user. Must not benull
.options
- Request options.- Throws:
AuthleteApiException
- Since:
- 4.15
-
getClientAuthorizationList
default AuthorizedClientListResponse getClientAuthorizationList(ClientAuthorizationGetListRequest request) throws AuthleteApiException
Get a list of client applications authorized by the end-user.- Parameters:
request
- Conditions to query the list. Thesubject
property (= the unique identifier of the end-user) in the request must not benull
.- Returns:
- A list of client applications that have been authorized by the end-user.
- Throws:
AuthleteApiException
- Since:
- 2.1
-
getClientAuthorizationList
AuthorizedClientListResponse getClientAuthorizationList(ClientAuthorizationGetListRequest request, Options options) throws AuthleteApiException
Get a list of client applications authorized by the end-user.- Parameters:
request
- Conditions to query the list. Thesubject
property (= the unique identifier of the end-user) in the request must not benull
.options
- Request options.- Returns:
- A list of client applications that have been authorized by the end-user.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
updateClientAuthorization
default void updateClientAuthorization(long clientId, ClientAuthorizationUpdateRequest request) throws AuthleteApiException
Update attributes of all existing access tokens issued to the client application by the end-user.- Parameters:
clientId
- The ID of the target client application.request
- The subject (= unique identifier) of the end-user and new attribute values of access tokens. Thesubject
property in the request must not benull
.- Throws:
AuthleteApiException
- Since:
- 2.1
-
updateClientAuthorization
void updateClientAuthorization(long clientId, ClientAuthorizationUpdateRequest request, Options options) throws AuthleteApiException
Update attributes of all existing access tokens issued to the client application by the end-user.- Parameters:
clientId
- The ID of the target client application.request
- The subject (= unique identifier) of the end-user and new attribute values of access tokens. Thesubject
property in the request must not benull
.options
- Request options.- Throws:
AuthleteApiException
- Since:
- 4.15
-
refreshClientSecret
default ClientSecretRefreshResponse refreshClientSecret(long clientId) throws AuthleteApiException
Refresh the client secret of a client. A new value of the client secret will be generated by the Authlete server. If you want to specify a new value, useupdateClientSecret
method.- Parameters:
clientId
- The client ID of a client.- Returns:
- A response from Authlete's
/api/client/secret/refresh
API. - Throws:
AuthleteApiException
- Since:
- 2.11
-
refreshClientSecret
ClientSecretRefreshResponse refreshClientSecret(long clientId, Options options) throws AuthleteApiException
Refresh the client secret of a client. A new value of the client secret will be generated by the Authlete server. If you want to specify a new value, useupdateClientSecret
method.- Parameters:
clientId
- The client ID of a client.options
- Request options.- Returns:
- A response from Authlete's
/api/client/secret/refresh
API. - Throws:
AuthleteApiException
- Since:
- 4.15
-
refreshClientSecret
default ClientSecretRefreshResponse refreshClientSecret(String clientIdentifier) throws AuthleteApiException
Refresh the client secret of a client. A new value of the client secret will be generated by the Authlete server. If you want to specify a new value, useupdateClientSecret
method.- Parameters:
clientIdentifier
- The client ID or the client ID alias of a client.- Returns:
- A response from Authlete's
/api/client/secret/refresh
API. - Throws:
AuthleteApiException
- Since:
- 2.11
-
refreshClientSecret
ClientSecretRefreshResponse refreshClientSecret(String clientIdentifier, Options options) throws AuthleteApiException
Refresh the client secret of a client. A new value of the client secret will be generated by the Authlete server. If you want to specify a new value, useupdateClientSecret
method.- Parameters:
clientIdentifier
- The client ID or the client ID alias of a client.options
- Request options.- Returns:
- A response from Authlete's
/api/client/secret/refresh
API. - Throws:
AuthleteApiException
- Since:
- 4.15
-
updateClientSecret
default ClientSecretUpdateResponse updateClientSecret(long clientId, String clientSecret) throws AuthleteApiException
Update the client secret of a client. If you want to have the Authlete server generate a new value of the client secret, userefreshClientSecret
method.Valid characters for a client secret are
A-Z
,a-z
,0-9
,-
, and_
. The maximum length of a client secret is 86.- Parameters:
clientId
- The client ID of a client.clientSecret
- The new value of the client secret.- Returns:
- A response from Authlete's
/api/client/secret/update
API. - Throws:
AuthleteApiException
- Since:
- 2.11
-
updateClientSecret
ClientSecretUpdateResponse updateClientSecret(long clientId, String clientSecret, Options options) throws AuthleteApiException
Update the client secret of a client. If you want to have the Authlete server generate a new value of the client secret, userefreshClientSecret
method.Valid characters for a client secret are
A-Z
,a-z
,0-9
,-
, and_
. The maximum length of a client secret is 86.- Parameters:
clientId
- The client ID of a client.clientSecret
- The new value of the client secret.options
- Request options.- Returns:
- A response from Authlete's
/api/client/secret/update
API. - Throws:
AuthleteApiException
- Since:
- 4.15
-
updateClientSecret
default ClientSecretUpdateResponse updateClientSecret(String clientIdentifier, String clientSecret) throws AuthleteApiException
Update the client secret of a client. If you want to have the Authlete server generate a new value of the client secret, userefreshClientSecret
method.Valid characters for a client secret are
A-Z
,a-z
,0-9
,-
, and_
. The maximum length of a client secret is 86.- Parameters:
clientIdentifier
- The client ID or the client ID alias of a client.clientSecret
- The new value of the client secret.- Returns:
- A response from Authlete's
/api/client/secret/update
API. - Throws:
AuthleteApiException
- Since:
- 2.11
-
updateClientSecret
ClientSecretUpdateResponse updateClientSecret(String clientIdentifier, String clientSecret, Options options) throws AuthleteApiException
Update the client secret of a client. If you want to have the Authlete server generate a new value of the client secret, userefreshClientSecret
method.Valid characters for a client secret are
A-Z
,a-z
,0-9
,-
, and_
. The maximum length of a client secret is 86.- Parameters:
clientIdentifier
- The client ID or the client ID alias of a client.clientSecret
- The new value of the client secret.options
- Request options.- Returns:
- A response from Authlete's
/api/client/secret/update
API. - Throws:
AuthleteApiException
- Since:
- 4.15
-
getSettings
Settings getSettings()
Get the reference to the settings of thisAuthleteApi
implementation.- Returns:
- The reference to the settings of this
AuthleteApi
implementation. - Since:
- 2.9
-
verifyJose
default JoseVerifyResponse verifyJose(JoseVerifyRequest request) throws AuthleteApiException
Verify a JOSE object.- Parameters:
request
- A request to Authlete's/api/jose/verify
API.- Returns:
- A response from Authlete's
/api/jose/verify
API. - Throws:
AuthleteApiException
- Since:
- 2.23
-
verifyJose
JoseVerifyResponse verifyJose(JoseVerifyRequest request, Options options) throws AuthleteApiException
Verify a JOSE object.- Parameters:
request
- A request to Authlete's/api/jose/verify
API.options
- Request options.- Returns:
- A response from Authlete's
/api/jose/verify
API. - Throws:
AuthleteApiException
- Since:
- 4.15
-
backchannelAuthentication
default BackchannelAuthenticationResponse backchannelAuthentication(BackchannelAuthenticationRequest request) throws AuthleteApiException
Call Authlete's/api/backchannel/authentication
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 2.32
-
backchannelAuthentication
BackchannelAuthenticationResponse backchannelAuthentication(BackchannelAuthenticationRequest request, Options options) throws AuthleteApiException
Call Authlete's/api/backchannel/authentication
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
backchannelAuthenticationIssue
default BackchannelAuthenticationIssueResponse backchannelAuthenticationIssue(BackchannelAuthenticationIssueRequest request) throws AuthleteApiException
Call Authlete's/api/backchannel/authentication/issue
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 2.32
-
backchannelAuthenticationIssue
BackchannelAuthenticationIssueResponse backchannelAuthenticationIssue(BackchannelAuthenticationIssueRequest request, Options options) throws AuthleteApiException
Call Authlete's/api/backchannel/authentication/issue
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
backchannelAuthenticationFail
default BackchannelAuthenticationFailResponse backchannelAuthenticationFail(BackchannelAuthenticationFailRequest request) throws AuthleteApiException
Call Authlete's/api/backchannel/authentication/fail
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 2.32
-
backchannelAuthenticationFail
BackchannelAuthenticationFailResponse backchannelAuthenticationFail(BackchannelAuthenticationFailRequest request, Options options) throws AuthleteApiException
Call Authlete's/api/backchannel/authentication/fail
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
backchannelAuthenticationComplete
default BackchannelAuthenticationCompleteResponse backchannelAuthenticationComplete(BackchannelAuthenticationCompleteRequest request) throws AuthleteApiException
Call Authlete's/api/backchannel/authentication/complete
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 2.32
-
backchannelAuthenticationComplete
BackchannelAuthenticationCompleteResponse backchannelAuthenticationComplete(BackchannelAuthenticationCompleteRequest request, Options options) throws AuthleteApiException
Call Authlete's/api/backchannel/authentication/complete
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
deviceAuthorization
default DeviceAuthorizationResponse deviceAuthorization(DeviceAuthorizationRequest request) throws AuthleteApiException
Call Authlete's/api/device/authorization
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 2.42
-
deviceAuthorization
DeviceAuthorizationResponse deviceAuthorization(DeviceAuthorizationRequest request, Options options) throws AuthleteApiException
Call Authlete's/api/device/authorization
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
deviceComplete
default DeviceCompleteResponse deviceComplete(DeviceCompleteRequest request) throws AuthleteApiException
Call Authlete's/api/device/complete
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 2.42
-
deviceComplete
DeviceCompleteResponse deviceComplete(DeviceCompleteRequest request, Options options) throws AuthleteApiException
Call Authlete's/api/device/complete
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
deviceVerification
default DeviceVerificationResponse deviceVerification(DeviceVerificationRequest request) throws AuthleteApiException
Call Authlete's/api/device/verification
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 2.42
-
deviceVerification
DeviceVerificationResponse deviceVerification(DeviceVerificationRequest request, Options options) throws AuthleteApiException
Call Authlete's/api/device/verification
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
pushAuthorizationRequest
default PushedAuthReqResponse pushAuthorizationRequest(PushedAuthReqRequest request) throws AuthleteApiException
Call Authlete's/api/pushed_auth_req
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 2.51
-
pushAuthorizationRequest
PushedAuthReqResponse pushAuthorizationRequest(PushedAuthReqRequest request, Options options) throws AuthleteApiException
Call Authlete's/api/pushed_auth_req
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
hskCreate
default HskResponse hskCreate(HskCreateRequest request) throws AuthleteApiException
Call Authlete's/api/hsk/create
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 2.97
-
hskCreate
HskResponse hskCreate(HskCreateRequest request, Options options) throws AuthleteApiException
Call Authlete's/api/hsk/create
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
hskDelete
default HskResponse hskDelete(String handle) throws AuthleteApiException
Call Authlete's/api/hsk/delete/{handle}
API.- Parameters:
handle
- The handle for the target record.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 2.97
-
hskDelete
HskResponse hskDelete(String handle, Options options) throws AuthleteApiException
Call Authlete's/api/hsk/delete/{handle}
API.- Parameters:
handle
- The handle for the target record.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
hskGet
default HskResponse hskGet(String handle) throws AuthleteApiException
Call Authlete's/api/hsk/get/{handle}
API.- Parameters:
handle
- The handle for the target record.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 2.97
-
hskGet
HskResponse hskGet(String handle, Options options) throws AuthleteApiException
Call Authlete's/api/hsk/get/{handle}
API.- Parameters:
handle
- The handle for the target record.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
hskGetList
default HskListResponse hskGetList() throws AuthleteApiException
Call Authlete's/api/hsk/get/list
API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 2.97
-
hskGetList
HskListResponse hskGetList(Options options) throws AuthleteApiException
Call Authlete's/api/hsk/get/list
API.- Parameters:
options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
echo
default Map<String,String> echo(Map<String,String> parameters) throws AuthleteApiException
Call Authlete's/api/misc/echo
API.The API returns a JSON string which contains given request parameters.
- Parameters:
parameters
- Arbitrary parameters.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 3.0
-
echo
Map<String,String> echo(Map<String,String> parameters, Options option) throws AuthleteApiException
Call Authlete's/api/misc/echo
API.The API returns a JSON string which contains given request parameters.
- Parameters:
parameters
- Arbitrary parameters.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
-
gm
default GMResponse gm(GMRequest request) throws AuthleteApiException
Call Authlete's/api/gm
API.The API is for the implementation of the grant management endpoint which is defined in "Grant Management for OAuth 2.0".
- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 3.1
- See Also:
- Grant Management for OAuth 2.0
-
gm
GMResponse gm(GMRequest request, Options options) throws AuthleteApiException
Call Authlete's/api/gm
API.The API is for the implementation of the grant management endpoint which is defined in "Grant Management for OAuth 2.0".
- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15
- See Also:
- Grant Management for OAuth 2.0
-
updateClientLockFlag
default void updateClientLockFlag(String clientIdentifier, boolean clientLocked) throws AuthleteApiException
Update the lock flag of a client application.- Parameters:
clientIdentifier
- The client ID or the client ID alias of a client application.clientLocked
- The value to which this request updates the lock flag of a client application.- Throws:
AuthleteApiException
- Since:
- 3.10
-
updateClientLockFlag
void updateClientLockFlag(String clientIdentifier, boolean clientLocked, Options options) throws AuthleteApiException
Update the lock flag of a client application.- Parameters:
clientIdentifier
- The client ID or the client ID alias of a client application.clientLocked
- The value to which this request updates the lock flag of a client application.options
- Request options.- Throws:
AuthleteApiException
- Since:
- 4.15
-
federationConfiguration
default FederationConfigurationResponse federationConfiguration(FederationConfigurationRequest request) throws AuthleteApiException
Call Authlete's/federation/configuration
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 3.31, Authlete 2.3
-
federationConfiguration
FederationConfigurationResponse federationConfiguration(FederationConfigurationRequest request, Options options) throws AuthleteApiException
Call Authlete's/federation/configuration
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15, Authlete 2.3
-
federationRegistration
default FederationRegistrationResponse federationRegistration(FederationRegistrationRequest request) throws AuthleteApiException
Call Authlete's/federation/registration
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 3.45, Authlete 2.3
-
federationRegistration
FederationRegistrationResponse federationRegistration(FederationRegistrationRequest request, Options options) throws AuthleteApiException
Call Authlete's/federation/registration
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15, Authlete 2.3
-
credentialIssuerMetadata
default CredentialIssuerMetadataResponse credentialIssuerMetadata(CredentialIssuerMetadataRequest request) throws AuthleteApiException
Call Authlete's/vci/metadata
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 3.55, Authlete 3.0
-
credentialIssuerMetadata
CredentialIssuerMetadataResponse credentialIssuerMetadata(CredentialIssuerMetadataRequest request, Options options) throws AuthleteApiException
Call Authlete's/vci/metadata
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15, Authlete 3.0
-
credentialJwtIssuerMetadata
default CredentialJwtIssuerMetadataResponse credentialJwtIssuerMetadata(CredentialJwtIssuerMetadataRequest request) throws AuthleteApiException
Call Authlete's/vci/jwtissuer
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 3.79, Authlete 3.0
-
credentialJwtIssuerMetadata
CredentialJwtIssuerMetadataResponse credentialJwtIssuerMetadata(CredentialJwtIssuerMetadataRequest request, Options options) throws AuthleteApiException
Call Authlete's/vci/jwtissuer
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15, Authlete 3.0
-
credentialIssuerJwks
default CredentialIssuerJwksResponse credentialIssuerJwks(CredentialIssuerJwksRequest request) throws AuthleteApiException
Call Authlete's/vci/jwks
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 3.72, Authlete 3.0
-
credentialIssuerJwks
CredentialIssuerJwksResponse credentialIssuerJwks(CredentialIssuerJwksRequest request, Options options) throws AuthleteApiException
Call Authlete's/vci/jwks
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15, Authlete 3.0
-
credentialOfferCreate
default CredentialOfferCreateResponse credentialOfferCreate(CredentialOfferCreateRequest request) throws AuthleteApiException
Call Authlete's/vci/offer/create
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 3.59, Authlete 3.0
-
credentialOfferCreate
CredentialOfferCreateResponse credentialOfferCreate(CredentialOfferCreateRequest request, Options options) throws AuthleteApiException
Call Authlete's/vci/offer/create
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15, Authlete 3.0
-
credentialOfferInfo
default CredentialOfferInfoResponse credentialOfferInfo(CredentialOfferInfoRequest request) throws AuthleteApiException
Call Authlete's/vci/offer/info
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 3.59, Authlete 3.0
-
credentialOfferInfo
CredentialOfferInfoResponse credentialOfferInfo(CredentialOfferInfoRequest request, Options options) throws AuthleteApiException
Call Authlete's/vci/offer/info
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15, Authlete 3.0
-
credentialSingleParse
default CredentialSingleParseResponse credentialSingleParse(CredentialSingleParseRequest request) throws AuthleteApiException
Call Authlete's/vci/single/parse
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 3.66, Authlete 3.0
-
credentialSingleParse
CredentialSingleParseResponse credentialSingleParse(CredentialSingleParseRequest request, Options options) throws AuthleteApiException
Call Authlete's/vci/single/parse
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15, Authlete 3.0
-
credentialSingleIssue
default CredentialSingleIssueResponse credentialSingleIssue(CredentialSingleIssueRequest request) throws AuthleteApiException
Call Authlete's/vci/single/issue
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 3.67, Authlete 3.0
-
credentialSingleIssue
CredentialSingleIssueResponse credentialSingleIssue(CredentialSingleIssueRequest request, Options options) throws AuthleteApiException
Call Authlete's/vci/single/issue
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15, Authlete 3.0
-
credentialBatchParse
default CredentialBatchParseResponse credentialBatchParse(CredentialBatchParseRequest request) throws AuthleteApiException
Call Authlete's/vci/batch/parse
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 3.71, Authlete 3.0
-
credentialBatchParse
CredentialBatchParseResponse credentialBatchParse(CredentialBatchParseRequest request, Options options) throws AuthleteApiException
Call Authlete's/vci/batch/parse
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15, Authlete 3.0
-
credentialBatchIssue
default CredentialBatchIssueResponse credentialBatchIssue(CredentialBatchIssueRequest request) throws AuthleteApiException
Call Authlete's/vci/batch/issue
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 3.71, Authlete 3.0
-
credentialBatchIssue
CredentialBatchIssueResponse credentialBatchIssue(CredentialBatchIssueRequest request, Options options) throws AuthleteApiException
Call Authlete's/vci/batch/issue
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15, Authlete 3.0
-
credentialDeferredParse
default CredentialDeferredParseResponse credentialDeferredParse(CredentialDeferredParseRequest request) throws AuthleteApiException
Call Authlete's/vci/deferred/parse
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 3.69, Authlete 3.0
-
credentialDeferredParse
CredentialDeferredParseResponse credentialDeferredParse(CredentialDeferredParseRequest request, Options options) throws AuthleteApiException
Call Authlete's/vci/deferred/parse
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15, Authlete 3.0
-
credentialDeferredIssue
default CredentialDeferredIssueResponse credentialDeferredIssue(CredentialDeferredIssueRequest request) throws AuthleteApiException
Call Authlete's/vci/deferred/issue
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 3.70, Authlete 3.0
-
credentialDeferredIssue
CredentialDeferredIssueResponse credentialDeferredIssue(CredentialDeferredIssueRequest request, Options options) throws AuthleteApiException
Call Authlete's/vci/deferred/issue
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15, Authlete 3.0
-
idTokenReissue
default IDTokenReissueResponse idTokenReissue(IDTokenReissueRequest request) throws AuthleteApiException
Call Authlete's/idtoken/reissue
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 3.68, Authlete 2.3.8, Authlete 3.0
-
idTokenReissue
IDTokenReissueResponse idTokenReissue(IDTokenReissueRequest request, Options options) throws AuthleteApiException
Call Authlete's/idtoken/reissue
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15, Authlete 2.3.8, Authlete 3.0
-
authorizationTicketInfo
default AuthorizationTicketInfoResponse authorizationTicketInfo(AuthorizationTicketInfoRequest request) throws AuthleteApiException
Call Authlete's/auth/authorization/ticket/info
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 3.88, Authlete 3.0
-
authorizationTicketInfo
AuthorizationTicketInfoResponse authorizationTicketInfo(AuthorizationTicketInfoRequest request, Options opitons) throws AuthleteApiException
Call Authlete's/auth/authorization/ticket/info
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15, Authlete 3.0
-
authorizationTicketUpdate
default AuthorizationTicketUpdateResponse authorizationTicketUpdate(AuthorizationTicketUpdateRequest request) throws AuthleteApiException
Call Authlete's/auth/authorization/ticket/update
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 3.88, Authlete 3.0
-
authorizationTicketUpdate
AuthorizationTicketUpdateResponse authorizationTicketUpdate(AuthorizationTicketUpdateRequest request, Options options) throws AuthleteApiException
Call Authlete's/auth/authorization/ticket/update
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15, Authlete 3.0
-
tokenCreateBatch
default TokenCreateBatchResponse tokenCreateBatch(TokenCreateRequest[] request, boolean dryRun) throws AuthleteApiException
Call Authlete's/auth/token/create/batch
API.- Parameters:
request
- Request parameters passed to the API.dryRun
- Whether or not to dry-run this API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 3.96, Authlete 3.0
-
tokenCreateBatch
TokenCreateBatchResponse tokenCreateBatch(TokenCreateRequest[] request, boolean dryRun, Options options) throws AuthleteApiException
Call Authlete's/auth/token/create/batch
API.- Parameters:
request
- Request parameters passed to the API.dryRun
- Whether or not to dry-run this API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15, Authlete 3.0
-
getTokenCreateBatchStatus
default TokenCreateBatchStatusResponse getTokenCreateBatchStatus(String requestId) throws AuthleteApiException
Call Authlete's/auth/token/create/batch/status
API.- Parameters:
requestId
- A request Id issued from/auth/token/create/batch
API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 3.96, Authlete 3.0
-
getTokenCreateBatchStatus
TokenCreateBatchStatusResponse getTokenCreateBatchStatus(String requestId, Options options) throws AuthleteApiException
Call Authlete's/auth/token/create/batch/status
API.- Parameters:
requestId
- A request Id issued from/auth/token/create/batch
API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
- Since:
- 4.15, Authlete 3.0
-
-