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'sPermissioninterface.org.apache.shiro.mgt Provides the masterSecurityManagerinterface 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 coreRealminterface.org.apache.shiro.subject Components supporting theSubjectinterface, the most important concept in Shiro's API.org.apache.shiro.subject.support Concrete support implementations of most of theorg.apache.shiro.subjectinterfaces.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 voidSimpleAccount. 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 voidSimpleAccount. 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)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. 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 Permission Modifier and Type Method Description Collection<Permission>AuthorizationInfo. getObjectPermissions()Returns all type-safePermissions 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 voidSimpleRole. 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 Permission Modifier and Type Method Description voidSimpleRole. 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 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 classAllPermissionAn all AllPermission instance is one that always implies any other permission; that is, itsimpliesmethod always returns true.classDomainPermissionProvides a base Permission class from which type-safe/domain-specific subclasses may extend.classWildcardPermissionAWildcardPermissionis 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 PermissionPermissionResolver. resolvePermission(String permissionString)Resolves a Permission based on the given String representation.PermissionWildcardPermissionResolver. 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 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 booleanAllPermission. 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 Permission Modifier and Type Method Description voidAuthorizingSecurityManager. checkPermission(PrincipalCollection principals, Permission permission)booleanAuthorizingSecurityManager. isPermitted(PrincipalCollection principals, Permission permission)Method parameters in org.apache.shiro.mgt with type arguments of type Permission Modifier and Type Method Description voidAuthorizingSecurityManager. 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 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 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 Permission Modifier and Type Method Description protected 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 Permission Modifier and Type Method Description voidSubject. 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 Permission Modifier and Type Method Description voidSubject. 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 Permission Modifier and Type Method Description voidDelegatingSubject. checkPermission(Permission permission)booleanDelegatingSubject. isPermitted(Permission permission)Method parameters in org.apache.shiro.subject.support with type arguments of type Permission Modifier and Type Method Description voidDelegatingSubject. 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 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)
-