Realm interface source code analysis

Realm is used to implement secure data source information, which is first parsed as follows:

1. Get the Realm name

String getName();

2. Whether authentication is supported (if supported, return true; if not, return false)

boolean supports(AuthenticationToken token);

3. Obtain AuthenticationInfo information according to the token

AuthenticationInfo getAuthenticationInfo(AuthenticationToken token) throws AuthenticationException;

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326581973&siteId=291194637