Skip to content

Commit 6b41faa

Browse files
committed
Remove deprecations in ClaimAccessor
Closes gh-11585
1 parent 0859da5 commit 6b41faa

File tree

1 file changed

+1
-14
lines changed
  • oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core

1 file changed

+1
-14
lines changed

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

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -64,19 +64,6 @@ default boolean hasClaim(String claim) {
6464
return getClaims().containsKey(claim);
6565
}
6666

67-
/**
68-
* Returns {@code true} if the claim exists in {@link #getClaims()}, otherwise
69-
* {@code false}.
70-
* @param claim the name of the claim
71-
* @return {@code true} if the claim exists, otherwise {@code false}
72-
* @deprecated Use
73-
* {@link org.springframework.security.oauth2.core.ClaimAccessor#hasClaim} instead.
74-
*/
75-
@Deprecated
76-
default Boolean containsClaim(String claim) {
77-
return hasClaim(claim);
78-
}
79-
8067
/**
8168
* Returns the claim value as a {@code String} or {@code null} if it does not exist or
8269
* is equal to {@code null}.

0 commit comments

Comments
 (0)