Realm用来实现安全数据源信息,先对其解析如下:
1.获取Realm名称
String getName();
2.是否支持认证(如果支持,返回true;如果不支持,返回false)
boolean supports(AuthenticationToken token);
3.根据token获取AuthenticationInfo信息
AuthenticationInfo getAuthenticationInfo(AuthenticationToken token) throws AuthenticationException;