Package com.authlete.common.conf
Class AuthleteEnvConfiguration
- java.lang.Object
-
- com.authlete.common.conf.AuthleteEnvConfiguration
-
- All Implemented Interfaces:
AuthleteConfiguration
public class AuthleteEnvConfiguration extends Object implements AuthleteConfiguration
Implementation ofAuthleteConfigurationbased on environment variables.This class refers to the following environment variables.
- AUTHLETE_BASE_URL
The base URL.
- AUTHLETE_SERVICEOWNER_APIKEY
The API key of the service owner.
- AUTHLETE_SERVICEOWNER_APISECRET
The API secret of the service owner.
- AUTHLETE_SERVICE_APIKEY
The API key of the service.
- AUTHLETE_SERVICE_APISECRET
The API secret of the service.
-
-
Constructor Summary
Constructors Constructor Description AuthleteEnvConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetApiVersion()Get the Authlete API version.StringgetBaseUrl()Get the base URL.StringgetClientCertificate()Get the certificate used for MTLS bound access tokens in PEM format.StringgetDpopKey()Get the public/private key pair used for DPoP signatures in JWK format.StringgetServiceAccessToken()Get the service API access tokenStringgetServiceApiKey()Get the service API key.StringgetServiceApiSecret()Get the service API secret.StringgetServiceOwnerAccessToken()Get the service owner API access tokenStringgetServiceOwnerApiKey()Get the service owner API key.StringgetServiceOwnerApiSecret()Get the service owner API secret.
-
-
-
Method Detail
-
getApiVersion
public String getApiVersion()
Description copied from interface:AuthleteConfigurationGet the Authlete API version.- Specified by:
getApiVersionin interfaceAuthleteConfiguration
-
getBaseUrl
public String getBaseUrl()
Description copied from interface:AuthleteConfigurationGet the base URL.- Specified by:
getBaseUrlin interfaceAuthleteConfiguration
-
getServiceOwnerApiKey
public String getServiceOwnerApiKey()
Description copied from interface:AuthleteConfigurationGet the service owner API key.- Specified by:
getServiceOwnerApiKeyin interfaceAuthleteConfiguration
-
getServiceOwnerApiSecret
public String getServiceOwnerApiSecret()
Description copied from interface:AuthleteConfigurationGet the service owner API secret.- Specified by:
getServiceOwnerApiSecretin interfaceAuthleteConfiguration
-
getServiceOwnerAccessToken
public String getServiceOwnerAccessToken()
Description copied from interface:AuthleteConfigurationGet the service owner API access token- Specified by:
getServiceOwnerAccessTokenin interfaceAuthleteConfiguration
-
getServiceApiKey
public String getServiceApiKey()
Description copied from interface:AuthleteConfigurationGet the service API key.- Specified by:
getServiceApiKeyin interfaceAuthleteConfiguration
-
getServiceApiSecret
public String getServiceApiSecret()
Description copied from interface:AuthleteConfigurationGet the service API secret.- Specified by:
getServiceApiSecretin interfaceAuthleteConfiguration
-
getServiceAccessToken
public String getServiceAccessToken()
Description copied from interface:AuthleteConfigurationGet the service API access token- Specified by:
getServiceAccessTokenin interfaceAuthleteConfiguration
-
getDpopKey
public String getDpopKey()
Description copied from interface:AuthleteConfigurationGet the public/private key pair used for DPoP signatures in JWK format.- Specified by:
getDpopKeyin interfaceAuthleteConfiguration
-
getClientCertificate
public String getClientCertificate()
Description copied from interface:AuthleteConfigurationGet the certificate used for MTLS bound access tokens in PEM format.- Specified by:
getClientCertificatein interfaceAuthleteConfiguration
-
-