AuthenticationInfo接口

AuthenticationInfo主要是用来获取认证信息的,它实现了Serializable接口,先对其解析如下:

1.获取主题的身份(或者可以理解为用户名,有一个主身份)

PrincipalCollection getPrincipals();

2.获取主题的凭证(或者可以理解为密码)

Object getCredentials();

猜你喜欢

转载自yansxjl.iteye.com/blog/2333967
今日推荐