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, com.authlete.common.api.Options options)
protected <TResponse>
TResponsecallGetApi(String auth, String path, Class<TResponse> responseClass, Map<String,Object[]> params, com.authlete.common.api.Options options)
protected <TResponse>
TResponsecallPostApi(String auth, String path, Object request, Class<TResponse> responseClass, com.authlete.common.api.Options options)
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()
protected void
setCustomRequestHeaders(javax.ws.rs.client.Invocation.Builder builder, com.authlete.common.api.Options options)
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, authorization, authorizationFail, authorizationFail, authorizationIssue, authorizationIssue, authorizationTicketInfo, authorizationTicketInfo, authorizationTicketUpdate, authorizationTicketUpdate, backchannelAuthentication, backchannelAuthentication, backchannelAuthenticationComplete, backchannelAuthenticationComplete, backchannelAuthenticationFail, backchannelAuthenticationFail, backchannelAuthenticationIssue, backchannelAuthenticationIssue, createClient, createClient, createService, createService, createServie, credentialBatchIssue, credentialBatchIssue, credentialBatchParse, credentialBatchParse, credentialDeferredIssue, credentialDeferredIssue, credentialDeferredParse, credentialDeferredParse, credentialIssuerJwks, credentialIssuerJwks, credentialIssuerMetadata, credentialIssuerMetadata, credentialJwtIssuerMetadata, credentialJwtIssuerMetadata, credentialOfferCreate, credentialOfferCreate, credentialOfferInfo, credentialOfferInfo, credentialSingleIssue, credentialSingleIssue, credentialSingleParse, credentialSingleParse, deleteClient, deleteClient, deleteClient, deleteClient, deleteClientAuthorization, deleteClientAuthorization, deleteGrantedScopes, deleteGrantedScopes, deleteRequestableScopes, deleteRequestableScopes, deleteService, deleteService, deviceAuthorization, deviceAuthorization, deviceComplete, deviceComplete, deviceVerification, deviceVerification, dynamicClientDelete, dynamicClientDelete, dynamicClientGet, dynamicClientGet, dynamicClientRegister, dynamicClientRegister, dynamicClientUpdate, dynamicClientUpdate, echo, echo, federationConfiguration, federationConfiguration, federationRegistration, federationRegistration, getClient, getClient, getClient, getClient, getClientAuthorizationList, getClientAuthorizationList, getClientList, getClientList, getClientList, getClientList, getClientList, getClientList, getClientList, getClientList, getGrantedScopes, getGrantedScopes, getRequestableScopes, getRequestableScopes, getService, getService, getServiceConfiguration, getServiceConfiguration, getServiceConfiguration, getServiceConfiguration, getServiceConfiguration, getServiceConfiguration, getServiceJwks, getServiceJwks, getServiceJwks, getServiceJwks, getServiceList, getServiceList, getServiceList, getServiceList, getTokenCreateBatchStatus, getTokenCreateBatchStatus, getTokenList, getTokenList, getTokenList, getTokenList, getTokenList, getTokenList, getTokenList, getTokenList, getTokenList, getTokenList, getTokenList, getTokenList, getTokenList, getTokenList, getTokenList, getTokenList, gm, gm, hskCreate, hskCreate, hskDelete, hskDelete, hskGet, hskGet, hskGetList, hskGetList, idTokenReissue, idTokenReissue, introspection, introspection, pushAuthorizationRequest, pushAuthorizationRequest, refreshClientSecret, refreshClientSecret, refreshClientSecret, refreshClientSecret, revocation, revocation, setRequestableScopes, setRequestableScopes, standardIntrospection, standardIntrospection, token, token, tokenCreate, tokenCreate, tokenCreateBatch, tokenCreateBatch, tokenDelete, tokenDelete, tokenFail, tokenFail, tokenIssue, tokenIssue, tokenRevoke, tokenRevoke, tokenUpdate, tokenUpdate, updateClient, updateClient, updateClientAuthorization, updateClientAuthorization, updateClientLockFlag, updateClientLockFlag, updateClientSecret, updateClientSecret, updateClientSecret, updateClientSecret, updateService, updateService, userinfo, userinfo, userinfoIssue, userinfoIssue, verifyJose, 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, com.authlete.common.api.Options options)
-
callDeleteApi
protected Void callDeleteApi(String auth, String path, com.authlete.common.api.Options options)
-
callPostApi
protected <TResponse> TResponse callPostApi(String auth, String path, Object request, Class<TResponse> responseClass, com.authlete.common.api.Options options)
-
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()
-
setCustomRequestHeaders
protected void setCustomRequestHeaders(javax.ws.rs.client.Invocation.Builder builder, com.authlete.common.api.Options options)
-
-