Package com.authlete.common.conf
Class AuthleteSimpleConfiguration
- java.lang.Object
-
- com.authlete.common.conf.AuthleteSimpleConfiguration
-
- All Implemented Interfaces:
AuthleteConfiguration
public class AuthleteSimpleConfiguration extends Object implements AuthleteConfiguration
POJO implementation ofAuthleteConfiguration.
-
-
Constructor Summary
Constructors Constructor Description AuthleteSimpleConfiguration()
-
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.AuthleteSimpleConfigurationsetApiVersion(String version)Set the Authlete API version.AuthleteSimpleConfigurationsetBaseUrl(String baseUrl)Set the base URL.AuthleteSimpleConfigurationsetClientCertificate(String clientCertificate)Set the client's MTLS certificate in PEM format.AuthleteSimpleConfigurationsetDpopKey(String dpopKey)Set the DPoP access public and private key pair in serialized JWK format.AuthleteSimpleConfigurationsetServiceAccessToken(String accessToken)Set the access token of the service.AuthleteSimpleConfigurationsetServiceApiKey(String apiKey)Set the API key of the service.AuthleteSimpleConfigurationsetServiceApiSecret(String apiSecret)Set the API secret of the service.AuthleteSimpleConfigurationsetServiceOwnerAccessToken(String accessToken)Set the access token of the service owner.AuthleteSimpleConfigurationsetServiceOwnerApiKey(String apiKey)Set the API key of the service owner.AuthleteSimpleConfigurationsetServiceOwnerApiSecret(String apiSecret)Set the API secret of the service owner.
-
-
-
Method Detail
-
getBaseUrl
public String getBaseUrl()
Description copied from interface:AuthleteConfigurationGet the base URL.- Specified by:
getBaseUrlin interfaceAuthleteConfiguration
-
setBaseUrl
public AuthleteSimpleConfiguration setBaseUrl(String baseUrl)
Set the base URL.- Parameters:
baseUrl- The base URL.- Returns:
thisobject.
-
getServiceOwnerApiKey
public String getServiceOwnerApiKey()
Description copied from interface:AuthleteConfigurationGet the service owner API key.- Specified by:
getServiceOwnerApiKeyin interfaceAuthleteConfiguration
-
setServiceOwnerApiKey
public AuthleteSimpleConfiguration setServiceOwnerApiKey(String apiKey)
Set the API key of the service owner.- Parameters:
apiKey- The API key of the service owner.- Returns:
thisobject.
-
getServiceOwnerApiSecret
public String getServiceOwnerApiSecret()
Description copied from interface:AuthleteConfigurationGet the service owner API secret.- Specified by:
getServiceOwnerApiSecretin interfaceAuthleteConfiguration
-
setServiceOwnerApiSecret
public AuthleteSimpleConfiguration setServiceOwnerApiSecret(String apiSecret)
Set the API secret of the service owner.- Parameters:
apiSecret- The API secret of the service owner.- Returns:
thisobject.
-
getServiceOwnerAccessToken
public String getServiceOwnerAccessToken()
Description copied from interface:AuthleteConfigurationGet the service owner API access token- Specified by:
getServiceOwnerAccessTokenin interfaceAuthleteConfiguration
-
setServiceOwnerAccessToken
public AuthleteSimpleConfiguration setServiceOwnerAccessToken(String accessToken)
Set the access token of the service owner.- Parameters:
accessToken- The access token of the service owner.- Returns:
thisobject.- Since:
- 2.30
-
getServiceApiKey
public String getServiceApiKey()
Description copied from interface:AuthleteConfigurationGet the service API key.- Specified by:
getServiceApiKeyin interfaceAuthleteConfiguration
-
setServiceApiKey
public AuthleteSimpleConfiguration setServiceApiKey(String apiKey)
Set the API key of the service.- Parameters:
apiKey- The API key of the service.- Returns:
thisobject.
-
getServiceApiSecret
public String getServiceApiSecret()
Description copied from interface:AuthleteConfigurationGet the service API secret.- Specified by:
getServiceApiSecretin interfaceAuthleteConfiguration
-
setServiceApiSecret
public AuthleteSimpleConfiguration setServiceApiSecret(String apiSecret)
Set the API secret of the service.- Parameters:
apiSecret- The API secret of the service.- Returns:
thisobject.
-
getServiceAccessToken
public String getServiceAccessToken()
Description copied from interface:AuthleteConfigurationGet the service API access token- Specified by:
getServiceAccessTokenin interfaceAuthleteConfiguration
-
setServiceAccessToken
public AuthleteSimpleConfiguration setServiceAccessToken(String accessToken)
Set the access token of the service.- Parameters:
accessToken- The access token of the service.- Returns:
thisobject.- Since:
- 2.30
-
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
-
setDpopKey
public AuthleteSimpleConfiguration setDpopKey(String dpopKey)
Set the DPoP access public and private key pair in serialized JWK format.
-
getClientCertificate
public String getClientCertificate()
Description copied from interface:AuthleteConfigurationGet the certificate used for MTLS bound access tokens in PEM format.- Specified by:
getClientCertificatein interfaceAuthleteConfiguration
-
setClientCertificate
public AuthleteSimpleConfiguration setClientCertificate(String clientCertificate)
Set the client's MTLS certificate in PEM format.
-
getApiVersion
public String getApiVersion()
Description copied from interface:AuthleteConfigurationGet the Authlete API version.- Specified by:
getApiVersionin interfaceAuthleteConfiguration
-
setApiVersion
public AuthleteSimpleConfiguration setApiVersion(String version)
Set the Authlete API version.
-
-