Package com.authlete.jaxrs.api
Class AuthleteApiJaxrsImpl
- java.lang.Object
-
- com.authlete.jaxrs.api.AuthleteApiJaxrsImpl
-
- All Implemented Interfaces:
com.authlete.common.api.AuthleteApi
- Direct Known Subclasses:
AuthleteApiImpl
,AuthleteApiImplV3
public abstract class AuthleteApiJaxrsImpl extends Object implements com.authlete.common.api.AuthleteApi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interface
AuthleteApiJaxrsImpl.AuthleteApiCall<TResponse>
-
Constructor Summary
Constructors Constructor Description AuthleteApiJaxrsImpl(com.authlete.common.conf.AuthleteConfiguration configuration)
The constructor with an instance ofAuthleteConfiguration
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Void
callDeleteApi(String auth, String path)
protected <TResponse>
TResponsecallGetApi(String auth, String path, Class<TResponse> responseClass, Map<String,Object[]> params)
protected <TResponse>
TResponsecallPostApi(String auth, String path, Object request, Class<TResponse> responseClass)
protected <TResponse>
TResponseexecuteApiCall(AuthleteApiJaxrsImpl.AuthleteApiCall<TResponse> apiCall)
Execute an Authlete API call.javax.ws.rs.client.ClientBuilder
getJaxRsClientBuilder()
com.authlete.common.api.Settings
getSettings()
protected javax.ws.rs.client.WebTarget
getTarget()
protected boolean
isDpopEnabled()
void
setJaxRsClientBuilder(javax.ws.rs.client.ClientBuilder jaxRsClientBuilder)
protected javax.ws.rs.client.Invocation.Builder
wrapWithDpop(javax.ws.rs.client.Invocation.Builder target, String path, String method)
-
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, createServie, 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
-
AuthleteApiJaxrsImpl
public AuthleteApiJaxrsImpl(com.authlete.common.conf.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
-
getTarget
protected javax.ws.rs.client.WebTarget getTarget()
-
wrapWithDpop
protected javax.ws.rs.client.Invocation.Builder wrapWithDpop(javax.ws.rs.client.Invocation.Builder target, String path, String method)
-
executeApiCall
protected <TResponse> TResponse executeApiCall(AuthleteApiJaxrsImpl.AuthleteApiCall<TResponse> apiCall) throws com.authlete.common.api.AuthleteApiException
Execute an Authlete API call.- Throws:
com.authlete.common.api.AuthleteApiException
-
callGetApi
protected <TResponse> TResponse callGetApi(String auth, String path, Class<TResponse> responseClass, Map<String,Object[]> params)
-
callPostApi
protected <TResponse> TResponse callPostApi(String auth, String path, Object request, Class<TResponse> responseClass)
-
getJaxRsClientBuilder
public javax.ws.rs.client.ClientBuilder getJaxRsClientBuilder()
-
setJaxRsClientBuilder
public void setJaxRsClientBuilder(javax.ws.rs.client.ClientBuilder jaxRsClientBuilder)
-
getSettings
public com.authlete.common.api.Settings getSettings()
- Specified by:
getSettings
in interfacecom.authlete.common.api.AuthleteApi
-
isDpopEnabled
protected boolean isDpopEnabled()
-
-