Class HankoClientConfig

java.lang.Object
io.hanko.sdk.config.HankoClientConfig

public class HankoClientConfig extends Object
Encapsulates main configuration parameters for creating a HankoWebAuthnClient.
  • Constructor Details

    • HankoClientConfig

      public HankoClientConfig(String apiUrl, String apiSecret)
      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 URL
      apiSecret - non-null, the Hanko API secret
    • HankoClientConfig

      public HankoClientConfig(String apiUrl, String apiSecret, String apiKeyId)
      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 URL
      apiSecret - non-null, the Hanko API secret
      apiKeyId - the Hanko API key ID
  • Method Details

    • getApiUrl

      public URL getApiUrl()
      Get the Hanko API base URL.
      Returns:
      the API base URL as a String
    • getApiKeyId

      public String getApiKeyId()
      Get the Hanko API key ID.
      Returns:
      the API Key ID as a String
    • getApiSecret

      public String getApiSecret()
      Get the Hanko API secret.
      Returns:
      the API secret as a String