mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 01:02:14 +00:00
Remove deprecations in ClaimAccessor
Closes gh-11585
This commit is contained in:
parent
0859da5590
commit
6b41faaf55
@ -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}.
|
||||
|
Loading…
x
Reference in New Issue
Block a user