1: Create securitymannager through ini configuration file;
2: Call the subject.login method to submit the authentication and submit the token
3: The securitymannager is authenticated, and the securitymannager is finally authenticated by the modularrealmauthenticator;
4: The modularrealmauthenticator calls inirealm (passes tolen to realm) to query user information in the ini configuration file
5: inirealm queries user information from shiro-first.ini according to the input token (usernamepasswordtoken), and queries user information (account, password) according to the account number
If user information is queried, return user information (account, password) to modularrealmauthenticator
If the query cannot be found, return null to the modularrealmauthenticator
6: modularrealmauthenticator receives the authentication information returned by inirealm
The returned authentication information is null, and the modularrealmauthenticator throws an exception unknownaccountexception
If the returned authentication information is not null (indicating that inireal has found the user), return the user password (existing in the ini file) to inirealm