JSecurity

Package org.jsecurity.authz

Core interfaces and exceptions supporting Authorization (access control).

See:
          Description

Interface Summary
AuthorizationInfo AuthorizationInfo represents a single Subject's stored authorization data (roles, permissions, etc) used during authorization (access control) checks only.
Authorizer An Authorizer performs authorization (access control) operations for any given Subject (aka 'application user').
AuthorizingAccount Deprecated.  
Permission A Permission represents the ability to perform an action or access a resource.
 

Class Summary
ModularRealmAuthorizer A ModularRealmAuthorizer is an Authorizer implementation that consults one or more configured Realms during an authorization operation.
SimpleAuthorizationInfo Simple value object implementation of the AuthorizationInfo interface that stores roles and permissions.
SimpleAuthorizingAccount Deprecated.  
SimpleRole A simple representation of a security role that has a name and a collection of permissions.
 

Exception Summary
AuthorizationException Exception thrown if there is a problem during authorization.
HostUnauthorizedException Thrown when a particular client (that is, host address) has not been enabled to access the system or if the client has been enabled access but is not permitted to perform a particluar operation or access a particular resource.
MissingAccountException An exception thrown when an Authorization operation is performed for a subject identity, but it is discovered that there is no Account for that subject to perform authorization checks against.
UnauthenticatedException Exception thrown when attempting to execute an authorization action when a successful authentication hasn't yet occurred.
UnauthorizedException Thrown to indicate a requested operation or access to a requested resource is not allowed.
 

Package org.jsecurity.authz Description

Core interfaces and exceptions supporting Authorization (access control).

JSecurity abbreviates the word 'AuthoriZation' as authz to distinguish it seperately from 'AuthentiCation', abbreviated as authc.

This package's primary interface of interest, which is the core of JSecurity authorization functionality, is the Authorizer. This interface handles all aspects of principal-related security and is the facade to all other JSecurity authorization components.

JSecurity has the ability to authorize subjects (a.k.a. users) without being intrusive to the application's domain model. Most applications will utilize the concepts of groups, roles, and permissions, but JSecurity tries to be as non-invasive as possible doesn't require any such interfaces (although a Permission interface is made available for fine-grained access control policies if you want to use JSecurity's permission support out-of-the-box).

Although it is possible for applications to implement this and other interfaces directly, it is not recommended. JSecurity already has base implementations which should be suitable for 99% of deployments.


JSecurity

Copyright © 2004-2008 JSecurity.