Package io.hanko.sdk.config
Class HankoClientConfig
java.lang.Object
io.hanko.sdk.config.HankoClientConfig
Encapsulates main configuration parameters for creating a
HankoWebAuthnClient.-
Constructor Summary
ConstructorsConstructorDescriptionHankoClientConfig(String apiUrl, String apiSecret)Construct a HankoClientConfig.HankoClientConfig(String apiUrl, String apiSecret, String apiKeyId)Construct a HankoClientConfig. -
Method Summary
Modifier and TypeMethodDescriptionGet the Hanko API key ID.Get the Hanko API secret.Get the Hanko API base URL.
-
Constructor Details
-
HankoClientConfig
Construct a HankoClientConfig.A config created without a Hanko API key ID defaults to API authentication using the the apiSecret.
- Parameters:
apiUrl- non-null, the Hanko API base URL, must be a valid URLapiSecret- non-null, the Hanko API secret
-
HankoClientConfig
Construct a HankoClientConfig.A config created without a Hanko API key ID defaults to API authentication using an HMAC.
- Parameters:
apiUrl- non-null, the Hanko API base URL, must be a valid URLapiSecret- non-null, the Hanko API secretapiKeyId- the Hanko API key ID
-
-
Method Details
-
getApiUrl
Get the Hanko API base URL.- Returns:
- the API base URL as a String
-
getApiKeyId
Get the Hanko API key ID.- Returns:
- the API Key ID as a String
-
getApiSecret
Get the Hanko API secret.- Returns:
- the API secret as a String
-