AuthenticationInfo主要是用来获取认证信息的,它实现了Serializable接口,先对其解析如下:
1.获取主题的身份(或者可以理解为用户名,有一个主身份)
PrincipalCollection getPrincipals();
2.获取主题的凭证(或者可以理解为密码)
Object getCredentials();
AuthenticationInfo主要是用来获取认证信息的,它实现了Serializable接口,先对其解析如下:
1.获取主题的身份(或者可以理解为用户名,有一个主身份)
PrincipalCollection getPrincipals();
2.获取主题的凭证(或者可以理解为密码)
Object getCredentials();