shiro-test:*本实例是javase的环境,用到了junit进行测试,不是web,也没用到spring *具体使用到了shiro的下列功能*身份验证:身份认证登录,验证用户是不是拥有相应的身份; *授权方式:授权,即权限验证,验证某已认证的用户是否拥有权限;即判断用户是否能做事情,常见的如:验证某用户是否拥有某个角色。或者细粒度的验证某用户对某人*会话管理器:会话管理,即用户登录后就是一次会话,在没有退出之前,它的所有信息都在会话中;会话可以是普通JavaSE环境的,也可以是如Web环境的; *密

上传者: 42177768 | 上传时间: 2021-03-23 19:09:59 | 文件大小: 87KB | 文件类型: ZIP
shiro-test:*本实例是javase的环境,用到了junit进行测试,不是web,也没用到spring *具体使用到了shiro的下列功能*身份验证:身份认证登录,验证用户是不是拥有相应的身份; *授权方式:授权,即权限验证,验证某已认证的用户是否拥有权限;即判断用户是否能做事情,常见的如:验证某用户是否拥有某个角色。或者细粒度的验证某用户对某人*会话管理器:会话管理,即用户登录后就是一次会话,在没有退出之前,它的所有信息都在会话中;会话可以是普通JavaSE环境的,也可以是如Web环境的; *密码学:加密,保护数据的安全性,如密码加密存储到数据库,而不是明文存储; *记住我:记住我,这个是非常常见的功能,即一次登录后,下次再来的话*缓存:缓存,缓存,某些用户登录后,其用户信息,拥有的角色权限不必每次去查,这样可以提高效率

文件下载

资源详情

[{"title":"( 86 个子文件 87KB ) shiro-test:*本实例是javase的环境,用到了junit进行测试,不是web,也没用到spring *具体使用到了shiro的下列功能*身份验证:身份认证登录,验证用户是不是拥有相应的身份; *授权方式:授权,即权限验证,验证某已认证的用户是否拥有权限;即判断用户是否能做事情,常见的如:验证某用户是否拥有某个角色。或者细粒度的验证某用户对某人*会话管理器:会话管理,即用户登录后就是一次会话,在没有退出之前,它的所有信息都在会话中;会话可以是普通JavaSE环境的,也可以是如Web环境的; *密","children":[{"title":"shiro-test-master","children":[{"title":"src","children":[{"title":"main","children":[{"title":"resources","children":[{"title":"shiro-ehcache.xml <span style='color:#111;'> 4.19KB </span>","children":null,"spread":false},{"title":"sql","children":[{"title":"sessions.sql <span style='color:#111;'> 618B </span>","children":null,"spread":false},{"title":"permission.sql <span style='color:#111;'> 849B </span>","children":null,"spread":false},{"title":"gl_permission_role.sql <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"user.sql <span style='color:#111;'> 968B </span>","children":null,"spread":false},{"title":"gl_user_permission.sql <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"role.sql <span style='color:#111;'> 819B </span>","children":null,"spread":false}],"spread":true},{"title":"shiro.ini <span style='color:#111;'> 3.50KB </span>","children":null,"spread":false},{"title":"password-ehcache.xml <span style='color:#111;'> 432B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"shiro","children":[{"title":"entity","children":[{"title":"Permission.java <span style='color:#111;'> 314B </span>","children":null,"spread":false},{"title":"UserInfo.java <span style='color:#111;'> 643B </span>","children":null,"spread":false},{"title":"RoleInfo.java <span style='color:#111;'> 315B </span>","children":null,"spread":false},{"title":"UserRolePermission.java <span style='color:#111;'> 495B </span>","children":null,"spread":false}],"spread":true},{"title":"ehcache","children":[{"title":"factory","children":[{"title":"SharedEhCacheManagerFactory.java <span style='color:#111;'> 633B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"dao","children":[{"title":"RoleDao.java <span style='color:#111;'> 341B </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"UserDaoImpl.java <span style='color:#111;'> 2.49KB </span>","children":null,"spread":false},{"title":"RoleDaoImpl.java <span style='color:#111;'> 588B </span>","children":null,"spread":false}],"spread":true},{"title":"UserDao.java <span style='color:#111;'> 764B </span>","children":null,"spread":false}],"spread":true},{"title":"Quickstart.java <span style='color:#111;'> 11.44KB </span>","children":null,"spread":false},{"title":"realm","children":[{"title":"MyRealm.java <span style='color:#111;'> 7.40KB </span>","children":null,"spread":false},{"title":"MyCacheRealm.java <span style='color:#111;'> 3.11KB </span>","children":null,"spread":false}],"spread":true},{"title":"exception","children":[{"title":"MyException.java <span style='color:#111;'> 142B </span>","children":null,"spread":false}],"spread":true},{"title":"listener","children":[{"title":"MySessionListener.java <span style='color:#111;'> 797B </span>","children":null,"spread":false},{"title":"MySessionListener2.java <span style='color:#111;'> 464B </span>","children":null,"spread":false}],"spread":true},{"title":"credentials","children":[{"title":"CustomCredentialsMatcher.java <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false},{"title":"RetryLimitHashedCredentialsMatcher.java <span style='color:#111;'> 2.73KB </span>","children":null,"spread":false}],"spread":false},{"title":"util","children":[{"title":"SerializableUtils.java <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"JdbcHelper.java <span style='color:#111;'> 10.89KB </span>","children":null,"spread":false},{"title":"CryptographyUtil.java <span style='color:#111;'> 804B </span>","children":null,"spread":false}],"spread":false},{"title":"session","children":[{"title":"dao","children":[{"title":"MySessionDAO.java <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false},{"title":"BaseDao.java <span style='color:#111;'> 221B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"service","children":[{"title":"PermissionService.java <span style='color:#111;'> 224B </span>","children":null,"spread":false},{"title":"UserService.java <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"PermissionServiceImpl.java <span style='color:#111;'> 431B </span>","children":null,"spread":false},{"title":"UserServiceImpl.java <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"RoleServiceImpl.java <span style='color:#111;'> 608B </span>","children":null,"spread":false}],"spread":false},{"title":"RoleService.java <span style='color:#111;'> 562B </span>","children":null,"spread":false}],"spread":false},{"title":"config","children":[{"title":"Config.java <span style='color:#111;'> 154B </span>","children":null,"spread":false}],"spread":false},{"title":"authen","children":[{"title":"MyAuthenticationInfo.java <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".classpath <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":".settings","children":[{"title":"org.eclipse.m2e.core.prefs <span style='color:#111;'> 90B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 243B </span>","children":null,"spread":false}],"spread":true},{"title":"pom.xml <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false},{"title":"target","children":[{"title":"classes","children":[{"title":"META-INF","children":[{"title":"MANIFEST.MF <span style='color:#111;'> 104B </span>","children":null,"spread":false},{"title":"maven","children":[{"title":"shiro-test","children":[{"title":"shiro-test","children":[{"title":"pom.properties <span style='color:#111;'> 250B </span>","children":null,"spread":false},{"title":"pom.xml <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"com","children":[{"title":"shiro","children":[{"title":"entity","children":[{"title":"Permission.class <span style='color:#111;'> 735B </span>","children":null,"spread":false},{"title":"UserRolePermission.class <span style='color:#111;'> 936B </span>","children":null,"spread":false},{"title":"RoleInfo.class <span style='color:#111;'> 729B </span>","children":null,"spread":false},{"title":"UserInfo.class <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false}],"spread":true},{"title":"ehcache","children":[{"title":"factory","children":[{"title":"SharedEhCacheManagerFactory.class <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"dao","children":[{"title":"impl","children":[{"title":"UserDaoImpl.class <span style='color:#111;'> 3.22KB </span>","children":null,"spread":false},{"title":"RoleDaoImpl.class <span style='color:#111;'> 838B </span>","children":null,"spread":false}],"spread":true},{"title":"RoleDao.class <span style='color:#111;'> 294B </span>","children":null,"spread":false},{"title":"UserDao.class <span style='color:#111;'> 633B </span>","children":null,"spread":false}],"spread":true},{"title":"realm","children":[{"title":"MyRealm.class <span style='color:#111;'> 6.57KB </span>","children":null,"spread":false},{"title":"MyCacheRealm.class <span style='color:#111;'> 3.19KB </span>","children":null,"spread":false}],"spread":true},{"title":"Quickstart.class <span style='color:#111;'> 8.26KB </span>","children":null,"spread":false},{"title":"exception","children":[{"title":"MyException.class <span style='color:#111;'> 308B </span>","children":null,"spread":false}],"spread":false},{"title":"listener","children":[{"title":"MySessionListener2.class <span style='color:#111;'> 947B </span>","children":null,"spread":false},{"title":"MySessionListener.class <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false}],"spread":false},{"title":"credentials","children":[{"title":"CustomCredentialsMatcher.class <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"RetryLimitHashedCredentialsMatcher.class <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false}],"spread":false},{"title":"util","children":[{"title":"JdbcHelper.class <span style='color:#111;'> 7.38KB </span>","children":null,"spread":false},{"title":"CryptographyUtil.class <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"SerializableUtils.class <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false}],"spread":false},{"title":"session","children":[{"title":"dao","children":[{"title":"BaseDao.class <span style='color:#111;'> 522B </span>","children":null,"spread":false},{"title":"MySessionDAO.class <span style='color:#111;'> 2.95KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"service","children":[{"title":"UserService.class <span style='color:#111;'> 619B </span>","children":null,"spread":false},{"title":"PermissionService.class <span style='color:#111;'> 257B </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"PermissionServiceImpl.class <span style='color:#111;'> 684B </span>","children":null,"spread":false},{"title":"UserServiceImpl.class <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"RoleServiceImpl.class <span style='color:#111;'> 866B </span>","children":null,"spread":false}],"spread":false},{"title":"RoleService.class <span style='color:#111;'> 306B </span>","children":null,"spread":false}],"spread":false},{"title":"config","children":[{"title":"Config.class <span style='color:#111;'> 359B </span>","children":null,"spread":false}],"spread":false},{"title":"authen","children":[{"title":"MyAuthenticationInfo.class <span style='color:#111;'> 1.87KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"shiro-ehcache.xml <span style='color:#111;'> 4.19KB </span>","children":null,"spread":false},{"title":"sql","children":[{"title":"sessions.sql <span style='color:#111;'> 618B </span>","children":null,"spread":false},{"title":"permission.sql <span style='color:#111;'> 849B </span>","children":null,"spread":false},{"title":"gl_permission_role.sql <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"user.sql <span style='color:#111;'> 968B </span>","children":null,"spread":false},{"title":"gl_user_permission.sql <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"role.sql <span style='color:#111;'> 819B </span>","children":null,"spread":false}],"spread":true},{"title":"shiro.ini <span style='color:#111;'> 3.50KB </span>","children":null,"spread":false},{"title":"password-ehcache.xml <span style='color:#111;'> 432B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 562B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明