diff --git a/adapters/oidc/adapter-core/src/main/java/org/keycloak/adapters/KeycloakDeploymentBuilder.java b/adapters/oidc/adapter-core/src/main/java/org/keycloak/adapters/KeycloakDeploymentBuilder.java index 7fca1f1ac8..85708baddd 100755 --- a/adapters/oidc/adapter-core/src/main/java/org/keycloak/adapters/KeycloakDeploymentBuilder.java +++ b/adapters/oidc/adapter-core/src/main/java/org/keycloak/adapters/KeycloakDeploymentBuilder.java @@ -58,7 +58,7 @@ public class KeycloakDeploymentBuilder { if (resource == null) throw new RuntimeException("Must set 'resource' in config"); deployment.setResourceName(resource); - String realmKeyPem = adapterConfig.getRealmKey(); + String realmKeyPem = adapterConfig.getRealmPublicKey(); if (realmKeyPem != null) { PublicKey realmKey; try { diff --git a/core/src/main/java/org/keycloak/representations/adapters/config/BaseRealmConfig.java b/core/src/main/java/org/keycloak/representations/adapters/config/BaseRealmConfig.java index e94dfa9b55..a7ef5b986a 100755 --- a/core/src/main/java/org/keycloak/representations/adapters/config/BaseRealmConfig.java +++ b/core/src/main/java/org/keycloak/representations/adapters/config/BaseRealmConfig.java @@ -31,7 +31,7 @@ public class BaseRealmConfig { @JsonProperty("realm") protected String realm; @JsonProperty("realm-public-key") - protected String realmKey; + protected String realmPublicKey; @JsonProperty("auth-server-url") protected String authServerUrl; @JsonProperty("ssl-required") @@ -53,12 +53,12 @@ public class BaseRealmConfig { this.realm = realm; } - public String getRealmKey() { - return realmKey; + public String getRealmPublicKey() { + return realmPublicKey; } - public void setRealmKey(String realmKey) { - this.realmKey = realmKey; + public void setRealmPublicKey(String realmPublicKey) { + this.realmPublicKey = realmPublicKey; } public String getAuthServerUrl() {