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 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.AuthleteSimpleConfiguration
setApiVersion(String version)
Set the Authlete API version.AuthleteSimpleConfiguration
setBaseUrl(String baseUrl)
Set the base URL.AuthleteSimpleConfiguration
setClientCertificate(String clientCertificate)
Set the client's MTLS certificate in PEM format.AuthleteSimpleConfiguration
setDpopKey(String dpopKey)
Set the DPoP access public and private key pair in serialized JWK format.AuthleteSimpleConfiguration
setServiceAccessToken(String accessToken)
Set the access token of the service.AuthleteSimpleConfiguration
setServiceApiKey(String apiKey)
Set the API key of the service.AuthleteSimpleConfiguration
setServiceApiSecret(String apiSecret)
Set the API secret of the service.AuthleteSimpleConfiguration
setServiceOwnerAccessToken(String accessToken)
Set the access token of the service owner.AuthleteSimpleConfiguration
setServiceOwnerApiKey(String apiKey)
Set the API key of the service owner.AuthleteSimpleConfiguration
setServiceOwnerApiSecret(String apiSecret)
Set the API secret of the service owner.
-
-
-
Method Detail
-
getBaseUrl
public String getBaseUrl()
Description copied from interface:AuthleteConfiguration
Get the base URL.- Specified by:
getBaseUrl
in interfaceAuthleteConfiguration
-
setBaseUrl
public AuthleteSimpleConfiguration setBaseUrl(String baseUrl)
Set the base URL.- Parameters:
baseUrl
- The base URL.- Returns:
this
object.
-
getServiceOwnerApiKey
public String getServiceOwnerApiKey()
Description copied from interface:AuthleteConfiguration
Get the service owner API key.- Specified by:
getServiceOwnerApiKey
in 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:
this
object.
-
getServiceOwnerApiSecret
public String getServiceOwnerApiSecret()
Description copied from interface:AuthleteConfiguration
Get the service owner API secret.- Specified by:
getServiceOwnerApiSecret
in 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:
this
object.
-
getServiceOwnerAccessToken
public String getServiceOwnerAccessToken()
Description copied from interface:AuthleteConfiguration
Get the service owner API access token- Specified by:
getServiceOwnerAccessToken
in 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:
this
object.- Since:
- 2.30
-
getServiceApiKey
public String getServiceApiKey()
Description copied from interface:AuthleteConfiguration
Get the service API key.- Specified by:
getServiceApiKey
in interfaceAuthleteConfiguration
-
setServiceApiKey
public AuthleteSimpleConfiguration setServiceApiKey(String apiKey)
Set the API key of the service.- Parameters:
apiKey
- The API key of the service.- Returns:
this
object.
-
getServiceApiSecret
public String getServiceApiSecret()
Description copied from interface:AuthleteConfiguration
Get the service API secret.- Specified by:
getServiceApiSecret
in interfaceAuthleteConfiguration
-
setServiceApiSecret
public AuthleteSimpleConfiguration setServiceApiSecret(String apiSecret)
Set the API secret of the service.- Parameters:
apiSecret
- The API secret of the service.- Returns:
this
object.
-
getServiceAccessToken
public String getServiceAccessToken()
Description copied from interface:AuthleteConfiguration
Get the service API access token- Specified by:
getServiceAccessToken
in interfaceAuthleteConfiguration
-
setServiceAccessToken
public AuthleteSimpleConfiguration setServiceAccessToken(String accessToken)
Set the access token of the service.- Parameters:
accessToken
- The access token of the service.- Returns:
this
object.- Since:
- 2.30
-
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
-
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:AuthleteConfiguration
Get the certificate used for MTLS bound access tokens in PEM format.- Specified by:
getClientCertificate
in interfaceAuthleteConfiguration
-
setClientCertificate
public AuthleteSimpleConfiguration setClientCertificate(String clientCertificate)
Set the client's MTLS certificate in PEM format.
-
getApiVersion
public String getApiVersion()
Description copied from interface:AuthleteConfiguration
Get the Authlete API version.- Specified by:
getApiVersion
in interfaceAuthleteConfiguration
-
setApiVersion
public AuthleteSimpleConfiguration setApiVersion(String version)
Set the Authlete API version.
-
-