org.wso2.registry.users
Interface Authorizer

All Known Subinterfaces:
AccessControlAdmin
All Known Implementing Classes:
ACLAccessControlAdmin, ACLAuthorizer, DefaultAccessControlAdmin, DefaultAuthorizer, HybridAccessControlAdmin, HybridAuthorizer, PathBasedAccessControlAdmin, PathBasedAuthorizer, RegistryAccessControlAdmin

public interface Authorizer

This perfroms authorization checks on Users and Roles


Method Summary
 java.lang.String[] getAllowedRolesForResource(java.lang.String resourceId, java.lang.String action)
          Returns all roles who are authorized to perform an action on a resource
 java.lang.String[] getAllowedUsersForResource(java.lang.String resourceId, java.lang.String action)
          Returns all users who are authorized to perform an action on a resource
 java.lang.String[] getDeniedRolesForResource(java.lang.String resourceId, java.lang.String action)
          Returns all roles who are authorized to perform an action on a resource
 java.lang.String[] getDeniedUsersForResource(java.lang.String resourceId, java.lang.String action)
          Returns all users who are authorized to perform an action on a resource
 boolean isRoleAuthorized(java.lang.String roleName, java.lang.String resourceId, java.lang.String action)
          Checks wheather an role is authorized to perfrom an action on a resource
 boolean isUserAuthorized(java.lang.String userName, java.lang.String resourceId, java.lang.String action)
          Checks wheather an user is authorized to perfrom an action on a resource
 

Method Detail

isUserAuthorized

boolean isUserAuthorized(java.lang.String userName,
                         java.lang.String resourceId,
                         java.lang.String action)
                         throws UserStoreException
Checks wheather an user is authorized to perfrom an action on a resource

Throws:
UserStoreException

isRoleAuthorized

boolean isRoleAuthorized(java.lang.String roleName,
                         java.lang.String resourceId,
                         java.lang.String action)
                         throws UserStoreException
Checks wheather an role is authorized to perfrom an action on a resource

Throws:
UserStoreException

getAllowedUsersForResource

java.lang.String[] getAllowedUsersForResource(java.lang.String resourceId,
                                              java.lang.String action)
                                              throws UserStoreException
Returns all users who are authorized to perform an action on a resource

Throws:
UserStoreException

getDeniedUsersForResource

java.lang.String[] getDeniedUsersForResource(java.lang.String resourceId,
                                             java.lang.String action)
                                             throws UserStoreException
Returns all users who are authorized to perform an action on a resource

Throws:
UserStoreException

getAllowedRolesForResource

java.lang.String[] getAllowedRolesForResource(java.lang.String resourceId,
                                              java.lang.String action)
                                              throws UserStoreException
Returns all roles who are authorized to perform an action on a resource

Throws:
UserStoreException

getDeniedRolesForResource

java.lang.String[] getDeniedRolesForResource(java.lang.String resourceId,
                                             java.lang.String action)
                                             throws UserStoreException
Returns all roles who are authorized to perform an action on a resource

Throws:
UserStoreException


Copyright © 2007 Apache Web Services Project. All Rights Reserved.