|
JSecurity | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AuthorizingAccount
An AuthorizingAccount is an Account that knows about its assiged roles and permissions
and can perform its own authorization (access control) checks. It primarily exists as a support class for Realm
implementations that want to cache authorization state when doing an account lookup so multiple authorization checks
do not need to access the Realm's underlying data store repeatedly.
Authorizer methods to execute the authorization checks as they see fit.
(Realm is a sub-interface of Authorizer and therefore must
implement those methods as well).
DEPRECATION NOTE: This interface and its default SimpleAuthorizingAccount
implementation is deprecated and will be removed prior to 1.0 being released. Instead, either just
return an Account instance, or if you want fine-grained control over authorization behavior, extend
a subclass of AuthorizingRealm and implement your own security checks in the
Realm itself instead of forcing this logic in your entity/domain classes where it could be error prone and
unnecessarily couple these objects to JSecurity.
AuthorizingRealm| Method Summary | |
|---|---|
void |
checkPermission(Permission permission)
Deprecated. |
void |
checkPermissions(Collection<Permission> permissions)
Deprecated. |
void |
checkRole(String role)
Deprecated. |
void |
checkRoles(Collection<String> roles)
Deprecated. |
boolean |
hasAllRoles(Collection<String> roleIdentifiers)
Deprecated. |
boolean |
hasRole(String roleIdentifier)
Deprecated. |
boolean[] |
hasRoles(List<String> roleIdentifiers)
Deprecated. |
boolean[] |
isPermitted(List<Permission> permissions)
Deprecated. |
boolean |
isPermitted(Permission permission)
Deprecated. |
boolean |
isPermittedAll(Collection<Permission> permissions)
Deprecated. |
| Methods inherited from interface org.jsecurity.authc.AuthenticationInfo |
|---|
getCredentials, getPrincipals |
| Methods inherited from interface org.jsecurity.authz.AuthorizationInfo |
|---|
getObjectPermissions, getRoles, getStringPermissions |
| Method Detail |
|---|
boolean isPermitted(Permission permission)
Subject.isPermitted(Permission)boolean[] isPermitted(List<Permission> permissions)
Subject.isPermitted(java.util.List)boolean isPermittedAll(Collection<Permission> permissions)
Subject.isPermittedAll(java.util.Collection)
void checkPermission(Permission permission)
throws AuthorizationException
AuthorizationExceptionSubject.checkPermission(Permission)
void checkPermissions(Collection<Permission> permissions)
throws AuthorizationException
AuthorizationExceptionSubject.checkPermissions(java.util.Collection)boolean hasRole(String roleIdentifier)
Subject.hasRole(String)boolean[] hasRoles(List<String> roleIdentifiers)
Subject.hasRoles(java.util.List)boolean hasAllRoles(Collection<String> roleIdentifiers)
Subject.hasAllRoles(java.util.Collection)void checkRole(String role)
Subject.checkRole(String)void checkRoles(Collection<String> roles)
Subject.checkRoles(java.util.Collection)
|
JSecurity | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||