Uses of Interface
org.apache.shiro.authz.Permission

Packages that use Permission
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' pacakge 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
 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
 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
 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 parameters in org.apache.shiro.authc with type arguments of type Permission
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.
 

Uses of Permission in org.apache.shiro.authz
 

Fields in org.apache.shiro.authz with type parameters of type Permission
protected  Set<Permission> SimpleAuthorizationInfo.objectPermissions
          Collection of all object-based permissions associaed with the account.
protected  Set<Permission> SimpleRole.permissions
           
 

Methods in org.apache.shiro.authz that return types with arguments of type Permission
 Set<Permission> SimpleAuthorizationInfo.getObjectPermissions()
           
 Collection<Permission> AuthorizationInfo.getObjectPermissions()
          Returns all type-safe Permissions assigned to the corresponding Subject.
 Set<Permission> SimpleRole.getPermissions()
           
 

Methods in org.apache.shiro.authz with parameters of type Permission
 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 !isPermitted(permission), throws an UnauthorizedException otherwise returns quietly.
 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.
 

Method parameters in org.apache.shiro.authz with type arguments of type Permission
 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 !isPermitted(permission) for all the given Permissions, throws an UnauthorizedException otherwise returns quietly.
 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 parameters in org.apache.shiro.authz with type arguments of type Permission
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
 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.
 

Methods in org.apache.shiro.authz.permission that return Permission
 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.
 

Methods in org.apache.shiro.authz.permission that return types with arguments of type Permission
 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
 boolean WildcardPermission.implies(Permission p)
           
 boolean AllPermission.implies(Permission p)
          Always returns true, indicating any Subject granted this permission can do anything.
 

Uses of Permission in org.apache.shiro.mgt
 

Methods in org.apache.shiro.mgt with parameters of type Permission
 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
 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 with parameters of type Permission
protected  void AuthorizingRealm.checkPermission(Permission permission, AuthorizationInfo info)
           
 void AuthorizingRealm.checkPermission(PrincipalCollection principal, Permission permission)
           
 boolean AuthorizingRealm.isPermitted(PrincipalCollection principals, Permission permission)
           
 

Method parameters in org.apache.shiro.realm with type arguments of type Permission
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
 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.
 

Method parameters in org.apache.shiro.subject with type arguments of type Permission
 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.
 

Uses of Permission in org.apache.shiro.subject.support
 

Methods in org.apache.shiro.subject.support with parameters of type Permission
 void DelegatingSubject.checkPermission(Permission permission)
           
 boolean DelegatingSubject.isPermitted(Permission permission)
           
 

Method parameters in org.apache.shiro.subject.support with type arguments of type Permission
 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
static Set<Permission> PermissionUtils.resolveDelimitedPermissions(String s, PermissionResolver permissionResolver)
           
static Set<Permission> PermissionUtils.resolvePermissions(Collection<String> permissionStrings, PermissionResolver permissionResolver)
           
 



Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.