Package | Description |
---|---|
org.apache.shiro.authc |
Core interfaces and exceptions concerning Authentication (the act of logging-in).
|
org.apache.shiro.authz |
Core interfaces and exceptions supporting Authorization (access control).
|
org.apache.shiro.authz.permission |
Support and default implementations for Shiro's
Permission
interface. |
org.apache.shiro.mgt |
Provides the master
SecurityManager interface and a default implementation
hierarchy for managing all aspects of Shiro's functionality in an application. |
org.apache.shiro.realm |
Components and sub-packages used in supporting the core
Realm interface. |
org.apache.shiro.subject |
Components supporting the
Subject interface, the most important concept in
Shiro's API. |
org.apache.shiro.subject.support |
Concrete support implementations of most of the
org.apache.shiro.subject interfaces. |
org.apache.shiro.util |
Your run-of-the-mill 'util' package for components and logic widely used across the framework that can't
find their home into a proper OO hierarchy (or, most likely for things used across many hierarchies).
|
Modifier and Type | Method and Description |
---|---|
Collection<Permission> |
SimpleAccount.getObjectPermissions()
Returns all object-based permissions assigned directly to this Account (not any of its realms).
|
Modifier and Type | Method and Description |
---|---|
void |
SimpleAccount.addObjectPermission(Permission permission)
Assigns an object-based permission directly to this Account (not any of its realms).
|
Modifier and Type | Method and Description |
---|---|
void |
SimpleAccount.addObjectPermissions(Collection<Permission> permissions)
Assigns one or more object-based permissions directly to this Account (not any of its realms).
|
void |
SimpleAccount.setObjectPermissions(Set<Permission> permissions)
Sets all object-based permissions assigned directly to this Account (not any of its realms).
|
Constructor and Description |
---|
SimpleAccount(Collection principals,
Object credentials,
String realmName,
Set<String> roleNames,
Set<Permission> permissions)
Constructs a SimpleAccount instance for the specified realm with the given principals and credentials, with the
the assigned roles and permissions.
|
SimpleAccount(Object principal,
Object credentials,
String realmName,
Set<String> roleNames,
Set<Permission> permissions)
Constructs a SimpleAccount instance for the specified realm with the given principal and credentials, with the
the assigned roles and permissions.
|
SimpleAccount(PrincipalCollection principals,
Object credentials,
Set<String> roleNames,
Set<Permission> permissions)
Constructs a SimpleAccount instance from the given principals and credentials, with the
the assigned roles and permissions.
|
Modifier and Type | Field and Description |
---|---|
protected Set<Permission> |
SimpleAuthorizationInfo.objectPermissions
Collection of all object-based permissions associated with the account.
|
protected Set<Permission> |
SimpleRole.permissions |
Modifier and Type | Method and Description |
---|---|
Set<Permission> |
SimpleAuthorizationInfo.getObjectPermissions() |
Collection<Permission> |
AuthorizationInfo.getObjectPermissions()
Returns all type-safe
Permission s assigned to the corresponding Subject. |
Set<Permission> |
SimpleRole.getPermissions() |
Modifier and Type | Method and Description |
---|---|
void |
SimpleRole.add(Permission permission) |
void |
SimpleAuthorizationInfo.addObjectPermission(Permission permission)
Adds (assigns) a permission to those directly associated with the account.
|
void |
ModularRealmAuthorizer.checkPermission(PrincipalCollection principals,
Permission permission)
If !
|
void |
Authorizer.checkPermission(PrincipalCollection subjectPrincipal,
Permission permission)
Ensures a subject/user
implies(Permission) implies} the specified Permission. |
boolean |
Permission.implies(Permission p)
Returns
true if this current instance implies all the functionality and/or resource access
described by the specified Permission argument, false otherwise. |
boolean |
SimpleRole.isPermitted(Permission p) |
boolean |
ModularRealmAuthorizer.isPermitted(PrincipalCollection principals,
Permission permission)
Returns
true if any of the configured realms'
ModularRealmAuthorizer.isPermitted(org.apache.shiro.subject.PrincipalCollection, Permission) call returns true ,
false otherwise. |
boolean |
Authorizer.isPermitted(PrincipalCollection subjectPrincipal,
Permission permission)
Returns true if the corresponding subject/user is permitted to perform an action or access a resource
summarized by the specified permission.
|
Modifier and Type | Method and Description |
---|---|
void |
SimpleRole.addAll(Collection<Permission> perms) |
void |
SimpleAuthorizationInfo.addObjectPermissions(Collection<Permission> permissions)
Adds (assigns) multiple permissions to those associated directly with the account.
|
void |
ModularRealmAuthorizer.checkPermissions(PrincipalCollection principals,
Collection<Permission> permissions)
If !
|
void |
Authorizer.checkPermissions(PrincipalCollection subjectPrincipal,
Collection<Permission> permissions)
Ensures the corresponding Subject/user
implies all of the
specified permission strings. |
boolean[] |
ModularRealmAuthorizer.isPermitted(PrincipalCollection principals,
List<Permission> permissions)
Returns
true if any of the configured realms'
ModularRealmAuthorizer.isPermitted(org.apache.shiro.subject.PrincipalCollection, List) call returns true ,
false otherwise. |
boolean[] |
Authorizer.isPermitted(PrincipalCollection subjectPrincipal,
List<Permission> permissions)
Checks if the corresponding Subject/user implies the given Permissions and returns a boolean array indicating
which permissions are implied.
|
boolean |
ModularRealmAuthorizer.isPermittedAll(PrincipalCollection principals,
Collection<Permission> permissions)
Returns
true if any of the configured realms'
ModularRealmAuthorizer.isPermitted(org.apache.shiro.subject.PrincipalCollection, Permission) call returns true
for all of the specified Permissions, false otherwise. |
boolean |
Authorizer.isPermittedAll(PrincipalCollection subjectPrincipal,
Collection<Permission> permissions)
Returns true if the corresponding Subject/user implies all of the specified permissions, false
otherwise.
|
void |
SimpleAuthorizationInfo.setObjectPermissions(Set<Permission> objectPermissions)
Sets the object-based permissions assigned directly to the account.
|
void |
SimpleRole.setPermissions(Set<Permission> permissions) |
Constructor and Description |
---|
SimpleRole(String name,
Set<Permission> permissions) |
Modifier and Type | Class and Description |
---|---|
class |
AllPermission
An all AllPermission instance is one that always implies any other permission; that is, its
implies method always returns true. |
class |
DomainPermission
Provides a base Permission class from which type-safe/domain-specific subclasses may extend.
|
class |
WildcardPermission
A
WildcardPermission is a very flexible permission construct supporting multiple levels of
permission matching. |
Modifier and Type | Method and Description |
---|---|
Permission |
WildcardPermissionResolver.resolvePermission(String permissionString)
Returns a new
WildcardPermission instance constructed based on the specified
permissionString. |
Permission |
PermissionResolver.resolvePermission(String permissionString)
Resolves a Permission based on the given String representation.
|
Modifier and Type | Method and Description |
---|---|
Collection<Permission> |
RolePermissionResolver.resolvePermissionsInRole(String roleString)
Resolves a Collection of Permissions based on the given String representation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
WildcardPermission.implies(Permission p) |
boolean |
AllPermission.implies(Permission p)
Always returns true, indicating any Subject granted this permission can do anything.
|
Modifier and Type | Method and Description |
---|---|
void |
AuthorizingSecurityManager.checkPermission(PrincipalCollection principals,
Permission permission) |
boolean |
AuthorizingSecurityManager.isPermitted(PrincipalCollection principals,
Permission permission) |
Modifier and Type | Method and Description |
---|---|
void |
AuthorizingSecurityManager.checkPermissions(PrincipalCollection principals,
Collection<Permission> permissions) |
boolean[] |
AuthorizingSecurityManager.isPermitted(PrincipalCollection principals,
List<Permission> permissions) |
boolean |
AuthorizingSecurityManager.isPermittedAll(PrincipalCollection principals,
Collection<Permission> permissions) |
Modifier and Type | Method and Description |
---|---|
protected Collection<Permission> |
AuthorizingRealm.getPermissions(AuthorizationInfo info) |
Modifier and Type | Method and Description |
---|---|
protected void |
AuthorizingRealm.checkPermission(Permission permission,
AuthorizationInfo info) |
void |
AuthorizingRealm.checkPermission(PrincipalCollection principal,
Permission permission) |
protected boolean |
AuthorizingRealm.isPermitted(Permission permission,
AuthorizationInfo info) |
boolean |
AuthorizingRealm.isPermitted(PrincipalCollection principals,
Permission permission) |
Modifier and Type | Method and Description |
---|---|
protected void |
AuthorizingRealm.checkPermissions(Collection<Permission> permissions,
AuthorizationInfo info) |
void |
AuthorizingRealm.checkPermissions(PrincipalCollection principal,
Collection<Permission> permissions) |
protected boolean[] |
AuthorizingRealm.isPermitted(List<Permission> permissions,
AuthorizationInfo info) |
boolean[] |
AuthorizingRealm.isPermitted(PrincipalCollection principals,
List<Permission> permissions) |
protected boolean |
AuthorizingRealm.isPermittedAll(Collection<Permission> permissions,
AuthorizationInfo info) |
boolean |
AuthorizingRealm.isPermittedAll(PrincipalCollection principal,
Collection<Permission> permissions) |
Modifier and Type | Method and Description |
---|---|
void |
Subject.checkPermission(Permission permission)
Ensures this Subject
implies the specified Permission . |
boolean |
Subject.isPermitted(Permission permission)
Returns
true if this Subject is permitted to perform an action or access a resource summarized by the
specified permission. |
Modifier and Type | Method and Description |
---|---|
void |
Subject.checkPermissions(Collection<Permission> permissions)
Ensures this Subject
implies all of the
specified permission strings. |
boolean[] |
Subject.isPermitted(List<Permission> permissions)
Checks if this Subject implies the given Permissions and returns a boolean array indicating which permissions
are implied.
|
boolean |
Subject.isPermittedAll(Collection<Permission> permissions)
Returns
true if this Subject implies all of the specified permissions, false otherwise. |
Modifier and Type | Method and Description |
---|---|
void |
DelegatingSubject.checkPermission(Permission permission) |
boolean |
DelegatingSubject.isPermitted(Permission permission) |
Modifier and Type | Method and Description |
---|---|
void |
DelegatingSubject.checkPermissions(Collection<Permission> permissions) |
boolean[] |
DelegatingSubject.isPermitted(List<Permission> permissions) |
boolean |
DelegatingSubject.isPermittedAll(Collection<Permission> permissions) |
Modifier and Type | Method and Description |
---|---|
static Set<Permission> |
PermissionUtils.resolveDelimitedPermissions(String s,
PermissionResolver permissionResolver) |
static Set<Permission> |
PermissionUtils.resolvePermissions(Collection<String> permissionStrings,
PermissionResolver permissionResolver) |
Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.