Oops...included the wrong class:

/public class MyAuthenticatingRealm extends AuthenticatingRealm {

        public void checkPermission(PrincipalCollection arg0, String arg1)
                        throws AuthorizationException {
                // TODO Auto-generated method stub
                return;
        }

        public void checkPermission(PrincipalCollection arg0, Permission arg1)
                        throws AuthorizationException {
                // TODO Auto-generated method stub
                return;
        }

        public void checkPermissions(PrincipalCollection arg0, String... arg1)
                        throws AuthorizationException {
                // TODO Auto-generated method stub
                return;
        }

        public void checkPermissions(PrincipalCollection arg0,
                        Collection<Permission> arg1) throws 
AuthorizationException {
                // TODO Auto-generated method stub
                return;
        }

        public void checkRole(PrincipalCollection arg0, String arg1)
                        throws AuthorizationException {
                // TODO Auto-generated method stub
                return;
        }

        public void checkRoles(PrincipalCollection arg0, Collection<String> 
arg1)
                        throws AuthorizationException {
                // TODO Auto-generated method stub
                return;
        }

        public void checkRoles(PrincipalCollection arg0, String... arg1)
                        throws AuthorizationException {
                // TODO Auto-generated method stub
                return;
        }

        public boolean hasAllRoles(PrincipalCollection arg0, Collection<String>
arg1) {
                // TODO Auto-generated method stub
                return false;
        }

        public boolean hasRole(PrincipalCollection arg0, String arg1) {
                // TODO Auto-generated method stub
                return false;
        }

        public boolean[] hasRoles(PrincipalCollection arg0, List<String> arg1) {
                // TODO Auto-generated method stub
                return null;
        }

        public boolean isPermitted(PrincipalCollection arg0, String arg1) {
                // TODO Auto-generated method stub
                return false;
        }

        public boolean isPermitted(PrincipalCollection arg0, Permission arg1) {
                // TODO Auto-generated method stub
                return false;
        }

        public boolean[] isPermitted(PrincipalCollection arg0, String... arg1) {
                // TODO Auto-generated method stub
                return null;
        }

        public boolean[] isPermitted(PrincipalCollection arg0, List<Permission>
arg1) {
                // TODO Auto-generated method stub
                return null;
        }

        public boolean isPermittedAll(PrincipalCollection arg0, String... arg1) 
{
                // TODO Auto-generated method stub
                return false;
        }

        public boolean isPermittedAll(PrincipalCollection arg0,
                        Collection<Permission> arg1) {
                // TODO Auto-generated method stub
                return false;
        }

        @Override
        protected AuthenticationInfo doGetAuthenticationInfo(
                        AuthenticationToken arg0) throws 
AuthenticationException {
                // TODO Auto-generated method stub
                return null;
        }
        
        @Override
        public boolean supports(AuthenticationToken arg0) {
                if (arg0 != null)
                        return arg0 instanceof MyAuthenticationToken;

                return false;
        }       

}/

--
View this message in context: 
http://shiro-user.582556.n2.nabble.com/Trouble-with-custom-filter-custom-realm-tp6685837p6685956.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to