接口 SecurityContext
public interface SecurityContext
Security context in which an endpoint is being invoked.
- 从以下版本开始:
- 2.0.0
- 作者:
- Andy Wilkinson
-
字段概要
字段 -
方法概要
修饰符和类型方法说明Return the currently authenticatedPrincipal
ornull
.boolean
isUserInRole
(String role) Returnstrue
if the currently authenticated user is in the givenrole
, or false otherwise.
-
字段详细资料
-
NONE
Empty security context.
-
-
方法详细资料