Uses of Interface
org.apache.shiro.authz.Permission
-
Packages that use Permission 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'sPermission
interface.org.apache.shiro.mgt Provides the masterSecurityManager
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 coreRealm
interface.org.apache.shiro.subject Components supporting theSubject
interface, the most important concept in Shiro's API.org.apache.shiro.subject.support Concrete support implementations of most of theorg.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). -
-
Uses of Permission in org.apache.shiro.authc
Methods in org.apache.shiro.authc that return types with arguments of type Permission Modifier and Type Method Description Collection<Permission>
SimpleAccount. getObjectPermissions()
Returns all object-based permissions assigned directly to this Account (not any of its realms).Methods in org.apache.shiro.authc with parameters of type Permission Modifier and Type Method Description void
SimpleAccount. addObjectPermission(Permission permission)
Assigns an object-based permission directly to this Account (not any of its realms).Method parameters in org.apache.shiro.authc with type arguments of type Permission Modifier and Type Method 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). -
Uses of Permission in org.apache.shiro.authz
Fields in org.apache.shiro.authz with type parameters of type Permission Modifier and Type Field Description protected Set<Permission>
SimpleAuthorizationInfo. objectPermissions
Collection of all object-based permissions associated with the account.protected Set<Permission>
SimpleRole. permissions
Methods in org.apache.shiro.authz that return types with arguments of type Permission Modifier and Type Method Description Collection<Permission>
AuthorizationInfo. getObjectPermissions()
Returns all type-safePermission
s assigned to the corresponding Subject.Set<Permission>
SimpleAuthorizationInfo. getObjectPermissions()
Set<Permission>
SimpleRole. getPermissions()
Methods in org.apache.shiro.authz with parameters of type Permission Modifier and Type Method Description void
SimpleRole. add(Permission permission)
void
SimpleAuthorizationInfo. addObjectPermission(Permission permission)
Adds (assigns) a permission to those directly associated with the account.void
Authorizer. checkPermission(PrincipalCollection subjectPrincipal, Permission permission)
Ensures a subject/userimplies(Permission)
implies} the specified Permission.void
ModularRealmAuthorizer. checkPermission(PrincipalCollection principals, Permission permission)
If !isPermitted(permission)
, throws anUnauthorizedException
otherwise returns quietly.boolean
Permission. implies(Permission p)
Returnstrue
if this current instance implies all the functionality and/or resource access described by the specifiedPermission
argument,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.boolean
ModularRealmAuthorizer. isPermitted(PrincipalCollection principals, Permission permission)
Returnstrue
if any of the configured realms'ModularRealmAuthorizer.isPermitted(org.apache.shiro.subject.PrincipalCollection, Permission)
call returnstrue
,false
otherwise.boolean
SimpleRole. isPermitted(Permission p)
Method parameters in org.apache.shiro.authz with type arguments of type Permission Modifier and Type Method 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
Authorizer. checkPermissions(PrincipalCollection subjectPrincipal, Collection<Permission> permissions)
Ensures the corresponding Subject/userimplies
all of the specified permission strings.void
ModularRealmAuthorizer. checkPermissions(PrincipalCollection principals, Collection<Permission> permissions)
If !isPermitted(permission)
for all the given Permissions, throws anUnauthorizedException
otherwise returns quietly.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. isPermitted(PrincipalCollection principals, List<Permission> permissions)
Returnstrue
if any of the configured realms'ModularRealmAuthorizer.isPermitted(org.apache.shiro.subject.PrincipalCollection, List)
call returnstrue
,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.boolean
ModularRealmAuthorizer. isPermittedAll(PrincipalCollection principals, Collection<Permission> permissions)
Returnstrue
if any of the configured realms'ModularRealmAuthorizer.isPermitted(org.apache.shiro.subject.PrincipalCollection, Permission)
call returnstrue
for 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 parameters in org.apache.shiro.authz with type arguments of type Permission Constructor Description SimpleRole(String name, Set<Permission> permissions)
-
Uses of Permission in org.apache.shiro.authz.permission
Classes in org.apache.shiro.authz.permission that implement Permission Modifier and Type Class Description class
AllPermission
An all AllPermission instance is one that always implies any other permission; that is, itsimplies
method always returns true.class
DomainPermission
Provides a base Permission class from which type-safe/domain-specific subclasses may extend.class
WildcardPermission
AWildcardPermission
is a very flexible permission construct supporting multiple levels of permission matching.Methods in org.apache.shiro.authz.permission that return Permission Modifier and Type Method Description Permission
PermissionResolver. resolvePermission(String permissionString)
Resolves a Permission based on the given String representation.Permission
WildcardPermissionResolver. resolvePermission(String permissionString)
Returns a newWildcardPermission
instance constructed based on the specified permissionString.Methods in org.apache.shiro.authz.permission that return types with arguments of type Permission Modifier and Type Method Description Collection<Permission>
RolePermissionResolver. resolvePermissionsInRole(String roleString)
Resolves a Collection of Permissions based on the given String representation.Methods in org.apache.shiro.authz.permission with parameters of type Permission Modifier and Type Method Description boolean
AllPermission. implies(Permission p)
Always returns true, indicating any Subject granted this permission can do anything.boolean
WildcardPermission. implies(Permission p)
-
Uses of Permission in org.apache.shiro.mgt
Methods in org.apache.shiro.mgt with parameters of type Permission Modifier and Type Method Description void
AuthorizingSecurityManager. checkPermission(PrincipalCollection principals, Permission permission)
boolean
AuthorizingSecurityManager. isPermitted(PrincipalCollection principals, Permission permission)
Method parameters in org.apache.shiro.mgt with type arguments of type Permission Modifier and Type Method 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)
-
Uses of Permission in org.apache.shiro.realm
Methods in org.apache.shiro.realm that return types with arguments of type Permission Modifier and Type Method Description protected Collection<Permission>
AuthorizingRealm. getPermissions(AuthorizationInfo info)
Methods in org.apache.shiro.realm with parameters of type Permission Modifier and Type Method 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)
Method parameters in org.apache.shiro.realm with type arguments of type Permission Modifier and Type Method 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)
-
Uses of Permission in org.apache.shiro.subject
Methods in org.apache.shiro.subject with parameters of type Permission Modifier and Type Method Description void
Subject. checkPermission(Permission permission)
Ensures this Subjectimplies
the specifiedPermission
.boolean
Subject. isPermitted(Permission permission)
Returnstrue
if this Subject is permitted to perform an action or access a resource summarized by the specified permission.Method parameters in org.apache.shiro.subject with type arguments of type Permission Modifier and Type Method Description void
Subject. checkPermissions(Collection<Permission> permissions)
Ensures this Subjectimplies
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)
Returnstrue
if this Subject implies all of the specified permissions,false
otherwise. -
Uses of Permission in org.apache.shiro.subject.support
Methods in org.apache.shiro.subject.support with parameters of type Permission Modifier and Type Method Description void
DelegatingSubject. checkPermission(Permission permission)
boolean
DelegatingSubject. isPermitted(Permission permission)
Method parameters in org.apache.shiro.subject.support with type arguments of type Permission Modifier and Type Method Description void
DelegatingSubject. checkPermissions(Collection<Permission> permissions)
boolean[]
DelegatingSubject. isPermitted(List<Permission> permissions)
boolean
DelegatingSubject. isPermittedAll(Collection<Permission> permissions)
-
Uses of Permission in org.apache.shiro.util
Methods in org.apache.shiro.util that return types with arguments of type Permission Modifier and Type Method Description static Set<Permission>
PermissionUtils. resolveDelimitedPermissions(String s, PermissionResolver permissionResolver)
static Set<Permission>
PermissionUtils. resolvePermissions(Collection<String> permissionStrings, PermissionResolver permissionResolver)
-