br.gov.frameworkdemoiselle.security
Class ServletAuthorizer

java.lang.Object
  extended by br.gov.frameworkdemoiselle.security.ServletAuthorizer
All Implemented Interfaces:
Authorizer, java.io.Serializable

public class ServletAuthorizer
extends java.lang.Object
implements Authorizer

Implements the Authorizer interface, offering a way to implement offering a manner to use the authorizer's functionalities.

Author:
SERPRO
See Also:
Serialized Form

Constructor Summary
ServletAuthorizer()
           
 
Method Summary
 boolean hasPermission(java.lang.String resource, java.lang.String operation)
           
 boolean hasRole(java.lang.String role)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletAuthorizer

public ServletAuthorizer()
Method Detail

hasRole

public boolean hasRole(java.lang.String role)
                throws java.lang.Exception
Specified by:
hasRole in interface Authorizer
Throws:
java.lang.Exception

hasPermission

public boolean hasPermission(java.lang.String resource,
                             java.lang.String operation)
                      throws java.lang.Exception
Specified by:
hasPermission in interface Authorizer
Throws:
java.lang.Exception


Copyright © 2014 SERPRO - Serviço Federal de Processamento de Dados. All Rights Reserved.