AuthorizationDecodeEvent.setUsername(String) AuthorizationDecodeEvent.setPassword(String)重新设置用户名密码NoSuchElementException建议使用下面的方式获取
Authentication auth=Authentication.current().orElse(null);
//或者
Authentication auth=Authentication.current().orElseThrow(UnAuthorizedException::new);
DataAccessController实现this#getPermissions()不为空的时候生效nullAuthentication的方法为获取当前激活用户的权限Authentication.setAttribute(String, Serializable)或者
Authentication.setAttributes(Map) 后,需要调用次方法进行同步.this#tokenStorage.putCopyright © 2018. All rights reserved.