Class AuthleteApiImplV3
- java.lang.Object
-
- com.authlete.common.api.AuthleteApiBasicImpl
-
- com.authlete.common.api.AuthleteApiImplV3
-
- All Implemented Interfaces:
AuthleteApi
public class AuthleteApiImplV3 extends AuthleteApiBasicImpl
The implementation ofAuthleteApi
usingHttpURLConnection
. Supports Authlete API V3.- Since:
- 4.21
- Author:
- Meysam Tamkin
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.authlete.common.api.AuthleteApiBasicImpl
AuthleteApiBasicImpl.AuthleteApiCall<TResponse>, AuthleteApiBasicImpl.ClientErrorHandling, AuthleteApiBasicImpl.HttpMethod, AuthleteApiBasicImpl.NotFoundHandling
-
-
Constructor Summary
Constructors Constructor Description AuthleteApiImplV3(AuthleteConfiguration configuration)
The constructor with an instance ofAuthleteConfiguration
.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AuthorizationResponse
authorization(AuthorizationRequest request, Options options)
Call/api/{serviceId}/auth/authorization
API.AuthorizationFailResponse
authorizationFail(AuthorizationFailRequest request, Options options)
Call/api/{serviceId}/auth/authorization/fail
API.AuthorizationIssueResponse
authorizationIssue(AuthorizationIssueRequest request, Options options)
Call/api/{serviceId}/auth/authorization/issue
API.AuthorizationTicketInfoResponse
authorizationTicketInfo(AuthorizationTicketInfoRequest request, Options options)
Call Authlete's/auth/authorization/ticket/info
API.AuthorizationTicketUpdateResponse
authorizationTicketUpdate(AuthorizationTicketUpdateRequest request, Options options)
Call Authlete's/auth/authorization/ticket/update
API.BackchannelAuthenticationResponse
backchannelAuthentication(BackchannelAuthenticationRequest request, Options options)
Call/api/{serviceId}/backchannel/authentication
API.BackchannelAuthenticationCompleteResponse
backchannelAuthenticationComplete(BackchannelAuthenticationCompleteRequest request, Options options)
Call/api/{serviceId}/backchannel/authentication/complete
API.BackchannelAuthenticationFailResponse
backchannelAuthenticationFail(BackchannelAuthenticationFailRequest request, Options options)
Call/api/{serviceId}/backchannel/authentication/fail
API.BackchannelAuthenticationIssueResponse
backchannelAuthenticationIssue(BackchannelAuthenticationIssueRequest request, Options options)
Call/api/{serviceId}/backchannel/authentication/issue
API.Client
createClient(Client client, Options options)
Call/api/{serviceId}/client/create
API.Service
createService(Service service, Options options)
Call/api/service/create
API.Service
createServie(Service service)
Deprecated.CredentialBatchIssueResponse
credentialBatchIssue(CredentialBatchIssueRequest request, Options options)
Call Authlete's/vci/batch/issue
API.CredentialBatchParseResponse
credentialBatchParse(CredentialBatchParseRequest request, Options options)
Call Authlete's/vci/batch/parse
API.CredentialDeferredIssueResponse
credentialDeferredIssue(CredentialDeferredIssueRequest request, Options options)
Call Authlete's/vci/deferred/issue
API.CredentialDeferredParseResponse
credentialDeferredParse(CredentialDeferredParseRequest request, Options options)
Call Authlete's/vci/deferred/parse
API.CredentialIssuerJwksResponse
credentialIssuerJwks(CredentialIssuerJwksRequest request, Options options)
Call Authlete's/vci/jwks
API.CredentialIssuerMetadataResponse
credentialIssuerMetadata(CredentialIssuerMetadataRequest request, Options options)
Call Authlete's/vci/metadata
API.CredentialJwtIssuerMetadataResponse
credentialJwtIssuerMetadata(CredentialJwtIssuerMetadataRequest request, Options options)
Call Authlete's/vci/jwtissuer
API.CredentialOfferCreateResponse
credentialOfferCreate(CredentialOfferCreateRequest request, Options options)
Call Authlete's/vci/offer/create
API.CredentialOfferInfoResponse
credentialOfferInfo(CredentialOfferInfoRequest request, Options options)
Call Authlete's/vci/offer/info
API.CredentialSingleIssueResponse
credentialSingleIssue(CredentialSingleIssueRequest request, Options options)
Call Authlete's/vci/single/issue
API.CredentialSingleParseResponse
credentialSingleParse(CredentialSingleParseRequest request, Options options)
Call Authlete's/vci/single/parse
API.void
deleteClient(long clientId, Options options)
Call/api/{serviceId}/client/delete/{clientId}
API.void
deleteClient(String clientId, Options options)
Call/api/{serviceId}/client/delete/{clientId}
API.void
deleteClientAuthorization(long clientId, String subject, Options options)
Delete all existing access tokens issued to the client application by the end-user.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).void
deleteRequestableScopes(long clientId, Options options)
Call/api/{serviceId}/client/extension/requestable_scopes/delete/{clientId}
API.void
deleteService(long apiKey, Options options)
Call/api/{serviceId}/service/delete/
API.DeviceAuthorizationResponse
deviceAuthorization(DeviceAuthorizationRequest request, Options options)
Call/api/{serviceId}/device/authorization
API.DeviceCompleteResponse
deviceComplete(DeviceCompleteRequest request, Options options)
Call/api/{serviceId}/device/complete
API.DeviceVerificationResponse
deviceVerification(DeviceVerificationRequest request, Options options)
Call/api/{serviceId}/device/verification
API.ClientRegistrationResponse
dynamicClientDelete(ClientRegistrationRequest request, Options options)
Call/api/{serviceId}/client/registration/delete
API.ClientRegistrationResponse
dynamicClientGet(ClientRegistrationRequest request, Options options)
Call/api/{serviceId}/client/registration/get
API.ClientRegistrationResponse
dynamicClientRegister(ClientRegistrationRequest request, Options options)
Call/api/{serviceId}/client/registration
API.ClientRegistrationResponse
dynamicClientUpdate(ClientRegistrationRequest request, Options options)
Call/api/{serviceId}/client/registration/update
API.Map<String,String>
echo(Map<String,String> parameters, Options options)
Call Authlete's/api/misc/echo
API.FederationConfigurationResponse
federationConfiguration(FederationConfigurationRequest request, Options options)
Call Authlete's/federation/configuration
API.FederationRegistrationResponse
federationRegistration(FederationRegistrationRequest request, Options options)
Call Authlete's/federation/registration
API.Client
getClient(long clientId, Options options)
Call/api/{serviceId}/client/get/{clientId}
API.Client
getClient(String clientId, Options options)
Call/api/{serviceId}/client/get/{clientId}
API.AuthorizedClientListResponse
getClientAuthorizationList(ClientAuthorizationGetListRequest request, Options options)
Get a list of client applications authorized by the end-user.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)
Call/api/{serviceId}/client/get/list
API.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).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).String[]
getRequestableScopes(long clientId, Options options)
Call/api/{serviceId}/client/extension/requestable_scopes/get/{clientId}
API.Service
getService(long apiKey, Options options)
Call/api/{serviceId}/service/get
API.String
getServiceConfiguration(boolean pretty, Options options)
Call/api/{serviceId}/service/configuration
APIString
getServiceConfiguration(Options options)
Call/api/{serviceId}/service/configuration
APIString
getServiceConfiguration(ServiceConfigurationRequest request, Options options)
Call/api/{serviceId}/service/configuration
APIString
getServiceJwks(boolean pretty, boolean includePrivateKeys, Options options)
Call/api/{serviceId}/service/jwks/get
APIString
getServiceJwks(Options options)
Call/api/{serviceId}/service/jwks/get
APIServiceListResponse
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)
Call/api/service/get/list
API.TokenCreateBatchStatusResponse
getTokenCreateBatchStatus(String requestId, Options options)
Call Authlete's/auth/token/create/batch/status
API.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).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).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).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).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
).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
).GMResponse
gm(GMRequest request, Options options)
Call Authlete's/api/gm
API.HskResponse
hskCreate(HskCreateRequest request, Options options)
Call Authlete's/api/hsk/create
API.HskResponse
hskDelete(String handle, Options options)
Call Authlete's/api/hsk/delete/{handle}
API.HskResponse
hskGet(String handle, Options options)
Call Authlete's/api/hsk/get/{handle}
API.HskListResponse
hskGetList(Options options)
Call Authlete's/api/hsk/get/list
API.IDTokenReissueResponse
idTokenReissue(IDTokenReissueRequest request, Options options)
Call Authlete's/idtoken/reissue
API.IntrospectionResponse
introspection(IntrospectionRequest request, Options options)
Call/api/{serviceId}/auth/introspection
API.NativeSsoResponse
nativeSso(NativeSsoRequest request, Options options)
Call Authlete's/nativesso
API.NativeSsoLogoutResponse
nativeSsoLogout(NativeSsoLogoutRequest request, Options options)
Call Authlete's/nativesso/logout
API.PushedAuthReqResponse
pushAuthorizationRequest(PushedAuthReqRequest request, Options options)
Call Authlete's/api/pushed_auth_req
API.ClientSecretRefreshResponse
refreshClientSecret(long clientId, Options options)
Refresh the client secret of a client.ClientSecretRefreshResponse
refreshClientSecret(String clientIdentifier, Options options)
Refresh the client secret of a client.RevocationResponse
revocation(RevocationRequest request, Options options)
Call/api/{serviceId}/auth/revocation
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).StandardIntrospectionResponse
standardIntrospection(StandardIntrospectionRequest request, Options options)
Call/api/{serviceId}/auth/introspection/standard
API.TokenResponse
token(TokenRequest request, Options options)
Call/api/{serviceId}/auth/token
API.TokenCreateResponse
tokenCreate(TokenCreateRequest request, Options options)
Call/api/{serviceId}/auth/token/create
API.TokenCreateBatchResponse
tokenCreateBatch(TokenCreateRequest[] request, boolean dryRun, Options options)
Call Authlete's/auth/token/create/batch
API.void
tokenDelete(String token, Options options)
Call/api/{serviceId}/auth/token/delete/{token}
API.TokenFailResponse
tokenFail(TokenFailRequest request, Options options)
Call/api/{serviceId}/auth/token/fail
API.TokenIssueResponse
tokenIssue(TokenIssueRequest request, Options options)
Call/api/{serviceId}/auth/token/issue
API.TokenRevokeResponse
tokenRevoke(TokenRevokeRequest request, Options options)
Call/api/{serviceId}/auth/token/revoke
API.TokenUpdateResponse
tokenUpdate(TokenUpdateRequest request, Options options)
Call/api/{serviceId}/auth/token/update
API.Client
updateClient(Client client, Options options)
Call/api/{serviceId}/client/update/{clientId}
API.void
updateClientAuthorization(long clientId, ClientAuthorizationUpdateRequest request, Options options)
Update attributes of all existing access tokens issued to the client application by the end-user.void
updateClientLockFlag(String clientIdentifier, boolean clientLocked, Options options)
Update the lock flag of a client application.ClientSecretUpdateResponse
updateClientSecret(long clientId, String clientSecret, Options options)
Update the client secret of a client.ClientSecretUpdateResponse
updateClientSecret(String clientIdentifier, String clientSecret, Options options)
Update the client secret of a client.Service
updateService(Service service, Options options)
Call/api/{serviceId}/service/update/
API.UserInfoResponse
userinfo(UserInfoRequest request, Options options)
Call/api/{serviceId}/auth/userinfo
API.UserInfoIssueResponse
userinfoIssue(UserInfoIssueRequest request, Options options)
Call/api/{serviceId}/auth/userinfo/issue
API.JoseVerifyResponse
verifyJose(JoseVerifyRequest request, Options options)
Call/api/{serviceId}/jose/verify
API.-
Methods inherited from class com.authlete.common.api.AuthleteApiBasicImpl
callApi, callApiWith4xxHandling, callApiWithNotFoundHandling, callDeleteApi, callEcho, callGetApi, callGetClientList, callGetServiceList, callGetTokenList, callPostApi, deleteApiResponse, executeApiCall, getSettings, isDpopEnabled
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.authlete.common.api.AuthleteApi
authorization, authorizationFail, authorizationIssue, authorizationTicketInfo, authorizationTicketUpdate, backchannelAuthentication, backchannelAuthenticationComplete, backchannelAuthenticationFail, backchannelAuthenticationIssue, createClient, createService, credentialBatchIssue, credentialBatchParse, credentialDeferredIssue, credentialDeferredParse, credentialIssuerJwks, credentialIssuerMetadata, credentialJwtIssuerMetadata, credentialOfferCreate, credentialOfferInfo, credentialSingleIssue, credentialSingleParse, deleteClient, deleteClient, deleteClientAuthorization, deleteGrantedScopes, deleteRequestableScopes, deleteService, deviceAuthorization, deviceComplete, deviceVerification, dynamicClientDelete, dynamicClientGet, dynamicClientRegister, dynamicClientUpdate, echo, federationConfiguration, federationRegistration, getClient, getClient, getClientAuthorizationList, getClientList, getClientList, getClientList, getClientList, getGrantedScopes, getRequestableScopes, getService, getServiceConfiguration, getServiceConfiguration, getServiceConfiguration, getServiceJwks, getServiceJwks, getServiceList, getServiceList, getTokenCreateBatchStatus, getTokenList, getTokenList, getTokenList, getTokenList, getTokenList, getTokenList, getTokenList, getTokenList, gm, hskCreate, hskDelete, hskGet, hskGetList, idTokenReissue, introspection, pushAuthorizationRequest, refreshClientSecret, refreshClientSecret, revocation, setRequestableScopes, standardIntrospection, token, tokenCreate, tokenCreateBatch, tokenDelete, tokenFail, tokenIssue, tokenRevoke, tokenUpdate, updateClient, updateClientAuthorization, updateClientLockFlag, updateClientSecret, updateClientSecret, updateService, userinfo, userinfoIssue, verifyJose
-
-
-
-
Constructor Detail
-
AuthleteApiImplV3
public AuthleteApiImplV3(AuthleteConfiguration configuration)
The constructor with an instance ofAuthleteConfiguration
.The existence of a constructor of this type is a required by
AuthleteApiFactory
.- Parameters:
configuration
- An instance ofAuthleteConfiguration
.
-
-
Method Detail
-
authorization
public AuthorizationResponse authorization(AuthorizationRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/auth/authorization
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
authorizationFail
public AuthorizationFailResponse authorizationFail(AuthorizationFailRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/auth/authorization/fail
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
authorizationIssue
public AuthorizationIssueResponse authorizationIssue(AuthorizationIssueRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/auth/authorization/issue
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
token
public TokenResponse token(TokenRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/auth/token
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
tokenCreate
public TokenCreateResponse tokenCreate(TokenCreateRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/auth/token/create
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
tokenDelete
public void tokenDelete(String token, Options options) throws AuthleteApiException
Call/api/{serviceId}/auth/token/delete/{token}
API.- Parameters:
token
- An access token or its hash value.options
- Request options.- Throws:
AuthleteApiException
-
tokenFail
public TokenFailResponse tokenFail(TokenFailRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/auth/token/fail
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
tokenIssue
public TokenIssueResponse tokenIssue(TokenIssueRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/auth/token/issue
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
tokenRevoke
public TokenRevokeResponse tokenRevoke(TokenRevokeRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/auth/token/revoke
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
tokenUpdate
public TokenUpdateResponse tokenUpdate(TokenUpdateRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/auth/token/update
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
getTokenList
public TokenListResponse getTokenList(Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
AuthleteApi.getTokenList(int, int, TokenStatus)
to specify the range explicitly.- Parameters:
options
- Request options.- Returns:
- The list of access tokens.
- Throws:
AuthleteApiException
-
getTokenList
public TokenListResponse getTokenList(TokenStatus tokenStatus, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
AuthleteApi.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
-
getTokenList
public TokenListResponse getTokenList(String clientIdentifier, String subject, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
AuthleteApi.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
-
getTokenList
public TokenListResponse getTokenList(String clientIdentifier, String subject, TokenStatus tokenStatus, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
AuthleteApi.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
-
getTokenList
public TokenListResponse getTokenList(int start, int end, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
getTokenList
public TokenListResponse getTokenList(int start, int end, TokenStatus tokenStatus, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
getTokenList
public TokenListResponse getTokenList(String clientIdentifier, String subject, int start, int end, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
getTokenList
public TokenListResponse getTokenList(String clientIdentifier, String subject, int start, int end, TokenStatus tokenStatus, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
revocation
public RevocationResponse revocation(RevocationRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/auth/revocation
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
userinfo
public UserInfoResponse userinfo(UserInfoRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/auth/userinfo
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
userinfoIssue
public UserInfoIssueResponse userinfoIssue(UserInfoIssueRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/auth/userinfo/issue
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
introspection
public IntrospectionResponse introspection(IntrospectionRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/auth/introspection
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
standardIntrospection
public StandardIntrospectionResponse standardIntrospection(StandardIntrospectionRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/auth/introspection/standard
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
createService
public Service createService(Service service, Options options) throws AuthleteApiException
Call/api/service/create
API.- Parameters:
service
- Information about a service to create.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
createServie
@Deprecated public Service createServie(Service service) throws AuthleteApiException
Deprecated.Call/api/service/create
API.- Throws:
AuthleteApiException
-
deleteService
public void deleteService(long apiKey, Options options) throws AuthleteApiException
Call/api/{serviceId}/service/delete/
API.- Parameters:
apiKey
- The API key of the service.options
- Request options.- Throws:
AuthleteApiException
-
getService
public Service getService(long apiKey, Options options) throws AuthleteApiException
Call/api/{serviceId}/service/get
API.- Parameters:
apiKey
- The API key of the service.options
- Request options.- Returns:
- Information about the service.
- Throws:
AuthleteApiException
-
getServiceList
public ServiceListResponse getServiceList(Options options) throws AuthleteApiException
Call/api/service/get/list
API.- Parameters:
options
- Request options.- Returns:
- The list of services.
- Throws:
AuthleteApiException
-
getServiceList
public ServiceListResponse getServiceList(int start, int end, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
updateService
public Service updateService(Service service, Options options) throws AuthleteApiException
Call/api/{serviceId}/service/update/
API.- Parameters:
service
- Information about a service to update.options
- Request options.- Returns:
- Information about the updated service.
- Throws:
AuthleteApiException
-
getServiceJwks
public String getServiceJwks(Options options) throws AuthleteApiException
Call/api/{serviceId}/service/jwks/get
API- 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
- See Also:
- RFC 7517: JSON Web Key (JWK)
-
getServiceJwks
public String getServiceJwks(boolean pretty, boolean includePrivateKeys, Options options) throws AuthleteApiException
Call/api/{serviceId}/service/jwks/get
API- 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
- See Also:
- RFC 7517: JSON Web Key (JWK)
-
getServiceConfiguration
public String getServiceConfiguration(Options options) throws AuthleteApiException
Call/api/{serviceId}/service/configuration
API- Parameters:
options
- Request options.- Returns:
- The configuration of the service in JSON format.
- Throws:
AuthleteApiException
- See Also:
- OpenID Connect Discovery 1.0
-
getServiceConfiguration
public String getServiceConfiguration(boolean pretty, Options options) throws AuthleteApiException
Call/api/{serviceId}/service/configuration
API- Parameters:
pretty
-true
to get the JSON in pretty format.options
- Request options.- Returns:
- The configuration of the service in JSON format.
- Throws:
AuthleteApiException
- See Also:
- OpenID Connect Discovery 1.0
-
getServiceConfiguration
public String getServiceConfiguration(ServiceConfigurationRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/service/configuration
API- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- The configuration of the service in JSON format.
- Throws:
AuthleteApiException
-
createClient
public Client createClient(Client client, Options options) throws AuthleteApiException
Call/api/{serviceId}/client/create
API.- Parameters:
client
- Information about a client to create.options
- Request options.- Returns:
- Information about a newly created client.
- Throws:
AuthleteApiException
-
dynamicClientRegister
public ClientRegistrationResponse dynamicClientRegister(ClientRegistrationRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/client/registration
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
dynamicClientGet
public ClientRegistrationResponse dynamicClientGet(ClientRegistrationRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/client/registration/get
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
dynamicClientUpdate
public ClientRegistrationResponse dynamicClientUpdate(ClientRegistrationRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/client/registration/update
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
dynamicClientDelete
public ClientRegistrationResponse dynamicClientDelete(ClientRegistrationRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/client/registration/delete
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
deleteClient
public void deleteClient(long clientId, Options options) throws AuthleteApiException
Call/api/{serviceId}/client/delete/{clientId}
API.- Parameters:
clientId
- Client ID.options
- Request options.- Throws:
AuthleteApiException
-
deleteClient
public void deleteClient(String clientId, Options options) throws AuthleteApiException
Call/api/{serviceId}/client/delete/{clientId}
API.- Parameters:
clientId
- Client ID.options
- Request options.- Throws:
AuthleteApiException
-
getClient
public Client getClient(long clientId, Options options) throws AuthleteApiException
Call/api/{serviceId}/client/get/{clientId}
API.- Parameters:
clientId
- The client ID.options
- Request options.- Returns:
- Information about the client.
- Throws:
AuthleteApiException
-
getClient
public Client getClient(String clientId, Options options) throws AuthleteApiException
Call/api/{serviceId}/client/get/{clientId}
API.- Parameters:
clientId
- The client ID.options
- Request options.- Returns:
- Information about the client.
- Throws:
AuthleteApiException
-
getClientList
public ClientListResponse getClientList(Options options) throws AuthleteApiException
Call/api/{serviceId}/client/get/list
API.- Parameters:
options
- Request options.- Returns:
- The list of clients.
- Throws:
AuthleteApiException
-
getClientList
public ClientListResponse getClientList(String developer, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
AuthleteApi.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
-
getClientList
public ClientListResponse getClientList(int start, int end, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
getClientList
public ClientListResponse getClientList(String developer, int start, int end, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
updateClient
public Client updateClient(Client client, Options options) throws AuthleteApiException
Call/api/{serviceId}/client/update/{clientId}
API.- Parameters:
client
- Information about a client to update.options
- Request options.- Returns:
- Information about the updated client.
- Throws:
AuthleteApiException
-
getRequestableScopes
public String[] getRequestableScopes(long clientId, Options options) throws AuthleteApiException
Call/api/{serviceId}/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
-
setRequestableScopes
public String[] setRequestableScopes(long clientId, String[] scopes, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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.
options
- Request options.- Returns:
- The resultant set of requestable scopes. The value may be different from the one given to this method.
- Throws:
AuthleteApiException
-
deleteRequestableScopes
public void deleteRequestableScopes(long clientId, Options options) throws AuthleteApiException
Call/api/{serviceId}/client/extension/requestable_scopes/delete/{clientId}
API.- Parameters:
clientId
- A client ID.options
- Request options.- Throws:
AuthleteApiException
-
getGrantedScopes
public GrantedScopesGetResponse getGrantedScopes(long clientId, String subject, Options options)
Description copied from interface:AuthleteApi
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.
-
deleteGrantedScopes
public void deleteGrantedScopes(long clientId, String subject, Options options)
Description copied from interface:AuthleteApi
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.
-
deleteClientAuthorization
public void deleteClientAuthorization(long clientId, String subject, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
getClientAuthorizationList
public AuthorizedClientListResponse getClientAuthorizationList(ClientAuthorizationGetListRequest request, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
updateClientAuthorization
public void updateClientAuthorization(long clientId, ClientAuthorizationUpdateRequest request, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
refreshClientSecret
public ClientSecretRefreshResponse refreshClientSecret(long clientId, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
refreshClientSecret
public ClientSecretRefreshResponse refreshClientSecret(String clientIdentifier, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
updateClientSecret
public ClientSecretUpdateResponse updateClientSecret(long clientId, String clientSecret, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
updateClientSecret
public ClientSecretUpdateResponse updateClientSecret(String clientIdentifier, String clientSecret, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
verifyJose
public JoseVerifyResponse verifyJose(JoseVerifyRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/jose/verify
API.- 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
-
backchannelAuthentication
public BackchannelAuthenticationResponse backchannelAuthentication(BackchannelAuthenticationRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/backchannel/authentication
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
backchannelAuthenticationIssue
public BackchannelAuthenticationIssueResponse backchannelAuthenticationIssue(BackchannelAuthenticationIssueRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/backchannel/authentication/issue
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
backchannelAuthenticationFail
public BackchannelAuthenticationFailResponse backchannelAuthenticationFail(BackchannelAuthenticationFailRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/backchannel/authentication/fail
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
backchannelAuthenticationComplete
public BackchannelAuthenticationCompleteResponse backchannelAuthenticationComplete(BackchannelAuthenticationCompleteRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/backchannel/authentication/complete
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
deviceAuthorization
public DeviceAuthorizationResponse deviceAuthorization(DeviceAuthorizationRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/device/authorization
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
deviceComplete
public DeviceCompleteResponse deviceComplete(DeviceCompleteRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/device/complete
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
deviceVerification
public DeviceVerificationResponse deviceVerification(DeviceVerificationRequest request, Options options) throws AuthleteApiException
Call/api/{serviceId}/device/verification
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
pushAuthorizationRequest
public PushedAuthReqResponse pushAuthorizationRequest(PushedAuthReqRequest request, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
hskCreate
public HskResponse hskCreate(HskCreateRequest request, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
hskDelete
public HskResponse hskDelete(String handle, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
hskGet
public HskResponse hskGet(String handle, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
hskGetList
public HskListResponse hskGetList(Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
Call Authlete's/api/hsk/get/list
API.- Parameters:
options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
echo
public Map<String,String> echo(Map<String,String> parameters, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
gm
public GMResponse gm(GMRequest request, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
- See Also:
- Grant Management for OAuth 2.0
-
updateClientLockFlag
public void updateClientLockFlag(String clientIdentifier, boolean clientLocked, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
federationConfiguration
public FederationConfigurationResponse federationConfiguration(FederationConfigurationRequest request, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
Call Authlete's/federation/configuration
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
federationRegistration
public FederationRegistrationResponse federationRegistration(FederationRegistrationRequest request, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
Call Authlete's/federation/registration
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
credentialIssuerMetadata
public CredentialIssuerMetadataResponse credentialIssuerMetadata(CredentialIssuerMetadataRequest request, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
Call Authlete's/vci/metadata
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
credentialJwtIssuerMetadata
public CredentialJwtIssuerMetadataResponse credentialJwtIssuerMetadata(CredentialJwtIssuerMetadataRequest request, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
Call Authlete's/vci/jwtissuer
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
credentialIssuerJwks
public CredentialIssuerJwksResponse credentialIssuerJwks(CredentialIssuerJwksRequest request, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
Call Authlete's/vci/jwks
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
credentialOfferCreate
public CredentialOfferCreateResponse credentialOfferCreate(CredentialOfferCreateRequest request, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
credentialOfferInfo
public CredentialOfferInfoResponse credentialOfferInfo(CredentialOfferInfoRequest request, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
credentialSingleParse
public CredentialSingleParseResponse credentialSingleParse(CredentialSingleParseRequest request, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
credentialSingleIssue
public CredentialSingleIssueResponse credentialSingleIssue(CredentialSingleIssueRequest request, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
credentialBatchParse
public CredentialBatchParseResponse credentialBatchParse(CredentialBatchParseRequest request, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
credentialBatchIssue
public CredentialBatchIssueResponse credentialBatchIssue(CredentialBatchIssueRequest request, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
credentialDeferredParse
public CredentialDeferredParseResponse credentialDeferredParse(CredentialDeferredParseRequest request, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
credentialDeferredIssue
public CredentialDeferredIssueResponse credentialDeferredIssue(CredentialDeferredIssueRequest request, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
idTokenReissue
public IDTokenReissueResponse idTokenReissue(IDTokenReissueRequest request, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
Call Authlete's/idtoken/reissue
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
authorizationTicketInfo
public AuthorizationTicketInfoResponse authorizationTicketInfo(AuthorizationTicketInfoRequest request, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
Call Authlete's/auth/authorization/ticket/info
API.- Parameters:
request
- Request parameters passed to the API.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
authorizationTicketUpdate
public AuthorizationTicketUpdateResponse authorizationTicketUpdate(AuthorizationTicketUpdateRequest request, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
tokenCreateBatch
public TokenCreateBatchResponse tokenCreateBatch(TokenCreateRequest[] request, boolean dryRun, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
getTokenCreateBatchStatus
public TokenCreateBatchStatusResponse getTokenCreateBatchStatus(String requestId, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
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
-
nativeSso
public NativeSsoResponse nativeSso(NativeSsoRequest request, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
Call Authlete's/nativesso
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
nativeSsoLogout
public NativeSsoLogoutResponse nativeSsoLogout(NativeSsoLogoutRequest request, Options options) throws AuthleteApiException
Description copied from interface:AuthleteApi
Call Authlete's/nativesso/logout
API.- Parameters:
request
- Request parameters passed to the API.options
- Request options.- Returns:
- Response from the API.
- Throws:
AuthleteApiException
-
-