Skip to content

Commit

Permalink
remove deprecated methods
Browse files Browse the repository at this point in the history
They have been deprecated for almost 4 years now. Let's drop them.

Signed-off-by: Kai Helbig <[email protected]>
  • Loading branch information
ostrya committed Jan 18, 2025
1 parent ff0b286 commit 3c93e22
Showing 1 changed file with 0 additions and 58 deletions.
58 changes: 0 additions & 58 deletions mock/src/main/java/com/tngtech/keycloakmock/api/ServerConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,6 @@ public List<String> 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.
*
Expand All @@ -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.
*
Expand Down Expand Up @@ -220,23 +196,6 @@ public Builder withPort(final int port) {
return this;
}

/**
* Set default hostname.
*
* <p>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.
*
Expand All @@ -253,23 +212,6 @@ public Builder withDefaultHostname(@Nonnull final String defaultHostname) {
return this;
}

/**
* Set default realm.
*
* <p>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.
*
Expand Down

0 comments on commit 3c93e22

Please sign in to comment.