Class KeycloakProperties

java.lang.Object
eu.europeana.apikey.config.KeycloakProperties

@Component @PropertySource("classpath:apikey.properties") @PropertySource(value="classpath:apikey.user.properties",ignoreResourceNotFound=true) @ConfigurationProperties(prefix="keycloak") public class KeycloakProperties extends Object
Central location where all (or most) configuration settings are loaded.
  • Constructor Details

    • KeycloakProperties

      public KeycloakProperties()
      Instantiates a new Keycloak properties.
    • KeycloakProperties

      public KeycloakProperties(String authServerUrl, String realm, boolean useResourceRoleMappings, String realmPublicKey)
      Instantiates a new Keycloak properties.
      Parameters:
      authServerUrl - the auth server url
      realm - the realm
      useResourceRoleMappings - the use resource role mappings
      realmPublicKey - the realm public key
  • Method Details

    • getAuthServerUrl

      public String getAuthServerUrl()
      Gets auth server url.
      Returns:
      the auth server url
    • setAuthServerUrl

      public void setAuthServerUrl(String authServerUrl)
      Sets auth server url.
      Parameters:
      authServerUrl - the auth server url
    • getRealm

      public String getRealm()
      Gets realm.
      Returns:
      the realm
    • setRealm

      public void setRealm(String realm)
      Sets realm.
      Parameters:
      realm - the realm
    • isUseResourceRoleMappings

      public boolean isUseResourceRoleMappings()
      Is use resource role mappings boolean.
      Returns:
      the boolean
    • setUseResourceRoleMappings

      public void setUseResourceRoleMappings(boolean useResourceRoleMappings)
      Sets use resource role mappings.
      Parameters:
      useResourceRoleMappings - the use resource role mappings
    • getRealmPublicKey

      public String getRealmPublicKey()
      Gets realm public key.
      Returns:
      the realm public key
    • setRealmPublicKey

      public void setRealmPublicKey(String realmPublicKey)
      Sets realm public key.
      Parameters:
      realmPublicKey - the realm public key
    • getMasterPublicKey

      public String getMasterPublicKey()
      Gets master public key.
      Returns:
      the master public key
    • setMasterPublicKey

      public void setMasterPublicKey(String masterPublicKey)
      Sets master public key.
      Parameters:
      masterPublicKey - the master public key