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 ofAuthleteConfiguration
based 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 String
getApiVersion()
Get the Authlete API version.String
getBaseUrl()
Get the base URL.String
getClientCertificate()
Get the certificate used for MTLS bound access tokens in PEM format.String
getDpopKey()
Get the public/private key pair used for DPoP signatures in JWK format.String
getServiceAccessToken()
Get the service API access tokenString
getServiceApiKey()
Get the service API key.String
getServiceApiSecret()
Get the service API secret.String
getServiceOwnerAccessToken()
Get the service owner API access tokenString
getServiceOwnerApiKey()
Get the service owner API key.String
getServiceOwnerApiSecret()
Get the service owner API secret.
-
-
-
Method Detail
-
getApiVersion
public String getApiVersion()
Description copied from interface:AuthleteConfiguration
Get the Authlete API version.- Specified by:
getApiVersion
in interfaceAuthleteConfiguration
-
getBaseUrl
public String getBaseUrl()
Description copied from interface:AuthleteConfiguration
Get the base URL.- Specified by:
getBaseUrl
in interfaceAuthleteConfiguration
-
getServiceOwnerApiKey
public String getServiceOwnerApiKey()
Description copied from interface:AuthleteConfiguration
Get the service owner API key.- Specified by:
getServiceOwnerApiKey
in interfaceAuthleteConfiguration
-
getServiceOwnerApiSecret
public String getServiceOwnerApiSecret()
Description copied from interface:AuthleteConfiguration
Get the service owner API secret.- Specified by:
getServiceOwnerApiSecret
in interfaceAuthleteConfiguration
-
getServiceOwnerAccessToken
public String getServiceOwnerAccessToken()
Description copied from interface:AuthleteConfiguration
Get the service owner API access token- Specified by:
getServiceOwnerAccessToken
in interfaceAuthleteConfiguration
-
getServiceApiKey
public String getServiceApiKey()
Description copied from interface:AuthleteConfiguration
Get the service API key.- Specified by:
getServiceApiKey
in interfaceAuthleteConfiguration
-
getServiceApiSecret
public String getServiceApiSecret()
Description copied from interface:AuthleteConfiguration
Get the service API secret.- Specified by:
getServiceApiSecret
in interfaceAuthleteConfiguration
-
getServiceAccessToken
public String getServiceAccessToken()
Description copied from interface:AuthleteConfiguration
Get the service API access token- Specified by:
getServiceAccessToken
in interfaceAuthleteConfiguration
-
getDpopKey
public String getDpopKey()
Description copied from interface:AuthleteConfiguration
Get the public/private key pair used for DPoP signatures in JWK format.- Specified by:
getDpopKey
in interfaceAuthleteConfiguration
-
getClientCertificate
public String getClientCertificate()
Description copied from interface:AuthleteConfiguration
Get the certificate used for MTLS bound access tokens in PEM format.- Specified by:
getClientCertificate
in interfaceAuthleteConfiguration
-
-