@@ -0,0 +1,1192 @@
+package realm;%0A%0Aimport org.apache.shiro.authc.AuthenticationException;%0Aimport org.apache.shiro.authc.AuthenticationInfo;%0Aimport org.apache.shiro.authc.AuthenticationToken;%0Aimport org.apache.shiro.authc.SimpleAuthenticationInfo;%0Aimport org.apache.shiro.authz.AuthorizationInfo;%0Aimport org.apache.shiro.realm.AuthorizingRealm;%0Aimport org.apache.shiro.subject.PrincipalCollection;%0Aimport org.apache.shiro.util.ByteSource;%0A%0A/**%0A * Created by Will.Zhang on 2016/12/5 0005 16:00.%0A */%0Apublic class MyRealm2 extends AuthorizingRealm%7B%0A    protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) %7B%0A        return null;%0A    %7D%0A%0A    protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) throws AuthenticationException %7B%0A        String username = %22liu%22;%0A        //%E9%9A%8F%E6%9C%BA%E6%95%B0%0A        String salt2 = %220072273a5d87322163795118fdd7c45e%22;%0A        //%E5%8A%A0%E5%AF%86%E5%90%8E%E7%9A%84%E5%AF%86%E7%A0%81%0A        String password = %22be320beca57748ab9632c4121ccac0db%22;%0A%0A        SimpleAuthenticationInfo authenticationInfo = new SimpleAuthenticationInfo(username, password, getName());%0A        authenticationInfo.setCredentialsSalt(ByteSource.Util.bytes(username + salt2));%0A        return authenticationInfo;%0A    %7D%0A%7D%0A

update section5