org.jboss.web.tomcat.security
Class JaccAuthorizationRealm
java.lang.Object
RealmBase
org.jboss.web.tomcat.security.JBossSecurityMgrRealm (src)
org.jboss.web.tomcat.security.JaccAuthorizationRealm
- public class JaccAuthorizationRealm
- extends JBossSecurityMgrRealm (src)
A subclass of JBossSecurityMgrRealm that peforms authorization based on
the JACC permissions and active Policy implementation.
- See Also:
- Serialized Form
Method Summary |
boolean |
hasResourcePermission(Request request,
Response response,
SecurityConstraint[] securityConstraints,
Context context)
|
boolean |
hasRole(java.security.Principal principal,
java.lang.String name)
Returns true if the specified user Principal has
the specified security role, within the context of this
Realm ; otherwise return false . |
boolean |
hasUserDataPermission(Request request,
Response response,
SecurityConstraint[] constraints)
|
Methods inherited from class org.jboss.web.tomcat.security.JBossSecurityMgrRealm (src) |
authenticate, authenticate, authenticate, authenticate, getCachingPrincpal, getName, getPassword, getPrincipal, getPrincipalRoles, setCertificatePrincipal, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JaccAuthorizationRealm
public JaccAuthorizationRealm()
hasResourcePermission
public boolean hasResourcePermission(Request request,
Response response,
SecurityConstraint[] securityConstraints,
Context context)
throws java.io.IOException
- Throws:
java.io.IOException
hasRole
public boolean hasRole(java.security.Principal principal,
java.lang.String name)
- Description copied from class:
JBossSecurityMgrRealm (src)
- Returns
true
if the specified user Principal
has
the specified security role, within the context of this
Realm
; otherwise return false
. This will be true
when an associated role Principal
can be found whose
getName
method returns a String
equalling the
specified role.
- Overrides:
hasRole
in class JBossSecurityMgrRealm (src)
- Parameters:
principal
- Principal
for whom the role is to be
checkedname
- Security role to be checked
hasUserDataPermission
public boolean hasUserDataPermission(Request request,
Response response,
SecurityConstraint[] constraints)
throws java.io.IOException
- Throws:
java.io.IOException