Uses of Interface
org.apache.shiro.authz.Permission
Packages that use Permission
Package
Description
Core interfaces and exceptions concerning Authentication (the act of logging-in).
Core interfaces and exceptions supporting Authorization (access control).
Support and default implementations for Shiro's
Permission
interface.Provides the master
SecurityManager interface and a default implementation
hierarchy for managing all aspects of Shiro's functionality in an application.Components and sub-packages used in supporting the core
Realm interface.Components supporting the
Subject interface, the most important concept in
Shiro's API.Concrete support implementations of most of the
org.apache.shiro.subject interfaces.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 PermissionModifier and TypeMethodDescriptionSimpleAccount.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 PermissionModifier and TypeMethodDescriptionvoidSimpleAccount.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 PermissionModifier and TypeMethodDescriptionvoidSimpleAccount.addObjectPermissions(Collection<Permission> permissions) Assigns one or more object-based permissions directly to this Account (not any of its realms).voidSimpleAccount.setObjectPermissions(Set<Permission> permissions) Set al. -
Uses of Permission in org.apache.shiro.authz
Fields in org.apache.shiro.authz with type parameters of type PermissionModifier and TypeFieldDescriptionprotected Set<Permission> SimpleAuthorizationInfo.objectPermissionsCollection of all object-based permissions associated with the account.protected Set<Permission> SimpleRole.permissionsMethods in org.apache.shiro.authz that return types with arguments of type PermissionModifier and TypeMethodDescriptionAuthorizationInfo.getObjectPermissions()Returns all type-safePermissions assigned to the corresponding Subject.SimpleAuthorizationInfo.getObjectPermissions()SimpleRole.getPermissions()Methods in org.apache.shiro.authz with parameters of type PermissionModifier and TypeMethodDescriptionvoidSimpleRole.add(Permission permission) voidSimpleAuthorizationInfo.addObjectPermission(Permission permission) Adds (assigns) a permission to those directly associated with the account.voidAuthorizer.checkPermission(PrincipalCollection subjectPrincipal, Permission permission) Ensures a subject/userimplies(Permission)implies} the specified Permission.voidModularRealmAuthorizer.checkPermission(PrincipalCollection principals, Permission permission) If !isPermitted(permission), throws anUnauthorizedExceptionotherwise returns quietly.booleanPermission.implies(Permission p) Returnstrueif this current instance implies all the functionality and/or resource access described by the specifiedPermissionargument,falseotherwise.booleanAuthorizer.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.booleanModularRealmAuthorizer.isPermitted(PrincipalCollection principals, Permission permission) Returnstrueif any of the configured realms'ModularRealmAuthorizer.isPermitted(org.apache.shiro.subject.PrincipalCollection, Permission)call returnstrue,falseotherwise.booleanSimpleRole.isPermitted(Permission p) Method parameters in org.apache.shiro.authz with type arguments of type PermissionModifier and TypeMethodDescriptionvoidSimpleRole.addAll(Collection<Permission> perms) voidSimpleAuthorizationInfo.addObjectPermissions(Collection<Permission> permissions) Adds (assigns) multiple permissions to those associated directly with the account.voidAuthorizer.checkPermissions(PrincipalCollection subjectPrincipal, Collection<Permission> permissions) Ensures the corresponding Subject/userimpliesall of the specified permission strings.voidModularRealmAuthorizer.checkPermissions(PrincipalCollection principals, Collection<Permission> permissions) If !isPermitted(permission)for all the given Permissions, throws anUnauthorizedExceptionotherwise 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) Returnstrueif any of the configured realms'ModularRealmAuthorizer.isPermitted(org.apache.shiro.subject.PrincipalCollection, List)call returnstrue,falseotherwise.booleanAuthorizer.isPermittedAll(PrincipalCollection subjectPrincipal, Collection<Permission> permissions) Returns true if the corresponding Subject/user implies all of the specified permissions, false otherwise.booleanModularRealmAuthorizer.isPermittedAll(PrincipalCollection principals, Collection<Permission> permissions) Returnstrueif any of the configured realms'ModularRealmAuthorizer.isPermitted(org.apache.shiro.subject.PrincipalCollection, Permission)call returnstruefor all of the specified Permissions,falseotherwise.voidSimpleAuthorizationInfo.setObjectPermissions(Set<Permission> objectPermissions) Sets the object-based permissions assigned directly to the account.voidSimpleRole.setPermissions(Set<Permission> permissions) Constructor parameters in org.apache.shiro.authz with type arguments of type Permission -
Uses of Permission in org.apache.shiro.authz.permission
Classes in org.apache.shiro.authz.permission that implement PermissionModifier and TypeClassDescriptionclassAn all AllPermission instance is one that always implies any other permission; that is, itsimpliesmethod always returns true.classProvides a base Permission class from which type-safe/domain-specific subclasses may extend.classAWildcardPermissionis a very flexible permission construct supporting multiple levels of permission matching.Methods in org.apache.shiro.authz.permission that return PermissionModifier and TypeMethodDescriptionPermissionResolver.resolvePermission(String permissionString) Resolves a Permission based on the given String representation.WildcardPermissionResolver.resolvePermission(String permissionString) Returns a newWildcardPermissioninstance constructed based on the specified permissionString.Methods in org.apache.shiro.authz.permission that return types with arguments of type PermissionModifier and TypeMethodDescriptionRolePermissionResolver.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 PermissionModifier and TypeMethodDescriptionbooleanAllPermission.implies(Permission p) Always returns true, indicating any Subject granted this permission can do anything.booleanWildcardPermission.implies(Permission p) -
Uses of Permission in org.apache.shiro.mgt
Methods in org.apache.shiro.mgt with parameters of type PermissionModifier and TypeMethodDescriptionvoidAuthorizingSecurityManager.checkPermission(PrincipalCollection principals, Permission permission) booleanAuthorizingSecurityManager.isPermitted(PrincipalCollection principals, Permission permission) Method parameters in org.apache.shiro.mgt with type arguments of type PermissionModifier and TypeMethodDescriptionvoidAuthorizingSecurityManager.checkPermissions(PrincipalCollection principals, Collection<Permission> permissions) boolean[]AuthorizingSecurityManager.isPermitted(PrincipalCollection principals, List<Permission> permissions) booleanAuthorizingSecurityManager.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 PermissionModifier and TypeMethodDescriptionprotected Collection<Permission> AuthorizingRealm.getPermissions(AuthorizationInfo info) Methods in org.apache.shiro.realm with parameters of type PermissionModifier and TypeMethodDescriptionprotected voidAuthorizingRealm.checkPermission(Permission permission, AuthorizationInfo info) voidAuthorizingRealm.checkPermission(PrincipalCollection principal, Permission permission) protected booleanAuthorizingRealm.isPermitted(Permission permission, AuthorizationInfo info) booleanAuthorizingRealm.isPermitted(PrincipalCollection principals, Permission permission) Method parameters in org.apache.shiro.realm with type arguments of type PermissionModifier and TypeMethodDescriptionprotected voidAuthorizingRealm.checkPermissions(Collection<Permission> permissions, AuthorizationInfo info) voidAuthorizingRealm.checkPermissions(PrincipalCollection principal, Collection<Permission> permissions) protected boolean[]AuthorizingRealm.isPermitted(List<Permission> permissions, AuthorizationInfo info) boolean[]AuthorizingRealm.isPermitted(PrincipalCollection principals, List<Permission> permissions) protected booleanAuthorizingRealm.isPermittedAll(Collection<Permission> permissions, AuthorizationInfo info) booleanAuthorizingRealm.isPermittedAll(PrincipalCollection principal, Collection<Permission> permissions) -
Uses of Permission in org.apache.shiro.subject
Methods in org.apache.shiro.subject with parameters of type PermissionModifier and TypeMethodDescriptionvoidSubject.checkPermission(Permission permission) Ensures this Subjectimpliesthe specifiedPermission.booleanSubject.isPermitted(Permission permission) Returnstrueif 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 PermissionModifier and TypeMethodDescriptionvoidSubject.checkPermissions(Collection<Permission> permissions) Ensures this Subjectimpliesall 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.booleanSubject.isPermittedAll(Collection<Permission> permissions) Returnstrueif this Subject implies all of the specified permissions,falseotherwise. -
Uses of Permission in org.apache.shiro.subject.support
Methods in org.apache.shiro.subject.support with parameters of type PermissionModifier and TypeMethodDescriptionvoidDelegatingSubject.checkPermission(Permission permission) booleanDelegatingSubject.isPermitted(Permission permission) Method parameters in org.apache.shiro.subject.support with type arguments of type PermissionModifier and TypeMethodDescriptionvoidDelegatingSubject.checkPermissions(Collection<Permission> permissions) boolean[]DelegatingSubject.isPermitted(List<Permission> permissions) booleanDelegatingSubject.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 PermissionModifier and TypeMethodDescriptionstatic Set<Permission> PermissionUtils.resolveDelimitedPermissions(String s, PermissionResolver permissionResolver) static Set<Permission> PermissionUtils.resolvePermissions(Collection<String> permissionStrings, PermissionResolver permissionResolver)