Explorar o código

Remove deprecations in ClaimAccessor

Closes gh-11585
Joe Grandja %!s(int64=3) %!d(string=hai) anos
pai
achega
6b41faaf55

+ 1 - 14
oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/ClaimAccessor.java

@@ -1,5 +1,5 @@
 /*
- * Copyright 2002-2021 the original author or authors.
+ * Copyright 2002-2022 the original author or authors.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -64,19 +64,6 @@ public interface ClaimAccessor {
 		return getClaims().containsKey(claim);
 	}
 
-	/**
-	 * Returns {@code true} if the claim exists in {@link #getClaims()}, otherwise
-	 * {@code false}.
-	 * @param claim the name of the claim
-	 * @return {@code true} if the claim exists, otherwise {@code false}
-	 * @deprecated Use
-	 * {@link org.springframework.security.oauth2.core.ClaimAccessor#hasClaim} instead.
-	 */
-	@Deprecated
-	default Boolean containsClaim(String claim) {
-		return hasClaim(claim);
-	}
-
 	/**
 	 * Returns the claim value as a {@code String} or {@code null} if it does not exist or
 	 * is equal to {@code null}.