Class 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
    • Constructor Summary

      Constructors 
      Constructor Description
      AuthleteApiJaxrsImpl​(com.authlete.common.conf.AuthleteConfiguration configuration)
      The constructor with an instance of AuthleteConfiguration.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected Void callDeleteApi​(String auth, String path)  
      protected <TResponse>
      TResponse
      callGetApi​(String auth, String path, Class<TResponse> responseClass, Map<String,​Object[]> params)  
      protected <TResponse>
      TResponse
      callPostApi​(String auth, String path, Object request, Class<TResponse> responseClass)  
      protected <TResponse>
      TResponse
      executeApiCall​(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 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 of AuthleteConfiguration.

        The existence of a constructor of this type is a required by AuthleteApiFactory.

        Parameters:
        configuration - An instance of AuthleteConfiguration.
    • 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
      • 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 interface com.authlete.common.api.AuthleteApi
      • isDpopEnabled

        protected boolean isDpopEnabled()