List of usage examples for org.apache.shiro.authc SimpleAccount SimpleAccount
public SimpleAccount()
From source file:com.parallax.server.blocklyprop.security.CloudSessionAuthenticationRealm.java
License:Open Source License
/** * Retrieves the AuthorizationInfo for the given principals from the * underlying data store.//w ww. j a v a2s .c o m * <p> * When returning an instance from this method, you might want to consider * using an instance of SimpleAuthorizationInfo, as it is suitable in * most cases. * * @param principals the primary identifying principals of the * AuthorizationInfo that should be retrieved. * @return the AuthorizationInfo associated with this principals. */ @Override protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) { LOG.debug("Authorization info"); AuthorizationInfo authorizationInfo = new SimpleAccount(); LOG.info("AuthInfo() details: {}", authorizationInfo.getRoles().size()); return authorizationInfo; }
From source file:com.parallax.server.blocklypropauth.security.SimpleAuthenticationRealm.java
@Override protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) { System.out.println("AUTHORIZATION"); AuthorizationInfo authorizationInfo = new SimpleAccount(); return authorizationInfo; }