diff --git a/mock/src/main/java/com/tngtech/keycloakmock/api/ServerConfig.java b/mock/src/main/java/com/tngtech/keycloakmock/api/ServerConfig.java index c4c8f6a..f3ca7d9 100644 --- a/mock/src/main/java/com/tngtech/keycloakmock/api/ServerConfig.java +++ b/mock/src/main/java/com/tngtech/keycloakmock/api/ServerConfig.java @@ -84,18 +84,6 @@ public List getDefaultAudiences() { return Collections.unmodifiableList(defaultAudiences); } - /** - * The default hostname used in issuer claim. - * - * @return default hostname - * @deprecated use {@link #getDefaultHostname()} instead - */ - @Nonnull - @Deprecated - public String getHostname() { - return getDefaultHostname(); - } - /** * The default hostname used in issuer claim. * @@ -119,18 +107,6 @@ public String getContextPath() { return contextPath; } - /** - * The default realm used in issuer claim. - * - * @return default realm - * @deprecated use {@link #getDefaultRealm()} instead - */ - @Nonnull - @Deprecated - public String getRealm() { - return getDefaultRealm(); - } - /** * The default realm used in issuer claim. * @@ -220,23 +196,6 @@ public Builder withPort(final int port) { return this; } - /** - * Set default hostname. - * - *

The hostname that is used as token issuer if no explicit hostname is configured for the - * token. Default value is 'localhost'. - * - * @param defaultHostname the hostname to use - * @return builder - * @see TokenConfig.Builder#withHostname(String) - * @deprecated use {@link #withDefaultHostname(String)} instead - */ - @Nonnull - @Deprecated - public Builder withHostname(@Nonnull final String defaultHostname) { - return withDefaultHostname(defaultHostname); - } - /** * Set default hostname. * @@ -253,23 +212,6 @@ public Builder withDefaultHostname(@Nonnull final String defaultHostname) { return this; } - /** - * Set default realm. - * - *

The realm that is used in issued tokens if no explicit realm is configured for the token. - * Default value is 'master'. - * - * @param defaultRealm the realm to use - * @return builder - * @see TokenConfig.Builder#withRealm(String) - * @deprecated use {@link #withDefaultRealm(String)} instead - */ - @Nonnull - @Deprecated - public Builder withRealm(@Nonnull final String defaultRealm) { - return withDefaultRealm(defaultRealm); - } - /** * Set default realm. *