|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AuthorizationManager
Generalized Authorization Manager Interface.
Replaces the legacy RealmMapping interface
org.jboss.security.RealmMapping| Method Summary | ||
|---|---|---|
int |
authorize(Resource resource)
Authorize a resource |
|
int |
authorize(Resource resource,
javax.security.auth.Subject subject,
java.security.acl.Group roleGroup)
Authorize a resource given a Group of Principals representing roles |
|
int |
authorize(Resource resource,
javax.security.auth.Subject subject,
RoleGroup role)
Authorize a resource given a role |
|
boolean |
doesUserHaveRole(java.security.Principal principal,
java.util.Set<java.security.Principal> roles)
Validates the application domain roles to which the operational environment Principal belongs. |
|
|
getEntitlements(java.lang.Class<T> clazz,
Resource resource,
Identity identity)
Instance Based Security Get all the entitlements assigned to the components of a Resource |
|
RoleGroup |
getSubjectRoles(javax.security.auth.Subject authenticatedSubject,
javax.security.auth.callback.CallbackHandler cbh)
Get the Current Roles for the authenticated Subject The AuthorizationManager will apply role generation and role mapping logic configured for the security domain |
|
java.security.acl.Group |
getTargetRoles(java.security.Principal targetPrincipal,
java.util.Map<java.lang.String,java.lang.Object> contextMap)
Trust usecases may have a need to determine the roles of the target principal which has been derived via a principal from another domain by the Authentication Manager An implementation of this interface may have to contact a trust provider for additional information about the principal |
|
java.util.Set<java.security.Principal> |
getUserRoles(java.security.Principal principal)
Deprecated. |
|
| Methods inherited from interface org.jboss.security.BaseSecurityManager |
|---|
getSecurityDomain |
| Method Detail |
|---|
int authorize(Resource resource)
throws AuthorizationException
resource -
AuthorizationException
int authorize(Resource resource,
javax.security.auth.Subject subject,
RoleGroup role)
throws AuthorizationException
resource - subject - the authenticated subjectrole - a role (which can be a nested role)
AuthorizationException
int authorize(Resource resource,
javax.security.auth.Subject subject,
java.security.acl.Group roleGroup)
throws AuthorizationException
resource - subject - the authenticated subjectroleGroup -
AuthorizationException
<T> EntitlementHolder<T> getEntitlements(java.lang.Class<T> clazz,
Resource resource,
Identity identity)
throws AuthorizationException
clazz - Defines the class type of the entitlementsresource - A Resource (Can be a Portal Resource, a Rules Resource)identity - The Identity against whom the entitlements need to be generated
AuthorizationException
boolean doesUserHaveRole(java.security.Principal principal,
java.util.Set<java.security.Principal> roles)
principal - the caller principal as known in the operation environment.roles - The Set
RoleGroup getSubjectRoles(javax.security.auth.Subject authenticatedSubject,
javax.security.auth.callback.CallbackHandler cbh)
authenticatedSubject - cbh - a CallbackHandler that can be used by the AuthorizationManager
to obtain essentials such as SecurityContext etc
java.util.Set<java.security.Principal> getUserRoles(java.security.Principal principal)
java.security.acl.Group getTargetRoles(java.security.Principal targetPrincipal,
java.util.Map<java.lang.String,java.lang.Object> contextMap)
targetPrincipal - Principal applicable in current domaincontextMap - Read-Only Contextual Information that may be useful for the
implementation in determining the roles.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||