添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
闷骚的四季豆  ·  Form属性文档 | Avue·  1 月前    · 
成熟的皮蛋  ·  Support·  3 月前    · 
发呆的茴香  ·  Valkyrie - 萌娘百科 ...·  6 月前    · 
Base implementation of SecurityContext . Used by default by SecurityContextHolder strategies.

See Also:
Serialized Form
setAuthentication ( Authentication authentication)
Changes the currently authenticated principal, or removes the authentication information.
String toString ()

getAuthentication

public Authentication getAuthentication()
Description copied from interface: SecurityContext
Obtains the currently authenticated principal, or an authentication request token.
Specified by:
getAuthentication in interface SecurityContext
Returns:
the Authentication or null if no authentication information is available

setAuthentication

public void setAuthentication(Authentication authentication)
Description copied from interface: SecurityContext
Changes the currently authenticated principal, or removes the authentication information.
Specified by:
setAuthentication in interface SecurityContext
Parameters:
authentication - the new Authentication token, or null if no further authentication information should be stored