Uses of Class
org.apache.shiro.authz.AuthorizationException
-
Packages that use AuthorizationException Package Description org.apache.shiro.authz Core interfaces and exceptions supporting Authorization (access control).org.apache.shiro.authz.aop Contains AOP implementation support classes specifically used for authorization operations, particularly supporting AOP Method Interceptors and JSR-175 metadata Annotations.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.session.mgt SessionManagercomponents supporting enterprise session management.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. -
-
Uses of AuthorizationException in org.apache.shiro.authz
Subclasses of AuthorizationException in org.apache.shiro.authz Modifier and Type Class Description classHostUnauthorizedExceptionThrown when a particular client (that is, host address) has not been enabled to access the system or if the client has been enabled access but is not permitted to perform a particular operation or access a particular resource.classUnauthenticatedExceptionException thrown when attempting to execute an authorization action when a successful authentication hasn't yet occurred.classUnauthorizedExceptionThrown to indicate a requested operation or access to a requested resource is not allowed.Methods in org.apache.shiro.authz that throw AuthorizationException Modifier and Type Method Description voidAuthorizer. checkPermission(PrincipalCollection subjectPrincipal, String permission)Ensures the corresponding Subject/user implies the specified permission String.voidAuthorizer. checkPermission(PrincipalCollection subjectPrincipal, Permission permission)Ensures a subject/userPermission.implies(Permission)implies} the specified Permission.voidModularRealmAuthorizer. checkPermission(PrincipalCollection principals, String permission)If !isPermitted(permission), throws anUnauthorizedExceptionotherwise returns quietly.voidModularRealmAuthorizer. checkPermission(PrincipalCollection principals, Permission permission)If !isPermitted(permission), throws anUnauthorizedExceptionotherwise returns quietly.voidAuthorizer. checkPermissions(PrincipalCollection subjectPrincipal, String... permissions)Ensures the corresponding Subject/userimpliesall of the specified permission strings.voidAuthorizer. checkPermissions(PrincipalCollection subjectPrincipal, Collection<Permission> permissions)Ensures the corresponding Subject/userimpliesall of the specified permission strings.voidModularRealmAuthorizer. checkPermissions(PrincipalCollection principals, String... permissions)If !isPermitted(permission), throws anUnauthorizedExceptionotherwise returns quietly.voidModularRealmAuthorizer. checkPermissions(PrincipalCollection principals, Collection<Permission> permissions)If !isPermitted(permission)for all the given Permissions, throws anUnauthorizedExceptionotherwise returns quietly.voidAuthorizer. checkRole(PrincipalCollection subjectPrincipal, String roleIdentifier)Asserts the corresponding Subject/user has the specified role by returning quietly if they do or throwing anAuthorizationExceptionif they do not.voidModularRealmAuthorizer. checkRole(PrincipalCollection principals, String role)If !hasRole(role), throws anUnauthorizedExceptionotherwise returns quietly.voidAuthorizer. checkRoles(PrincipalCollection subjectPrincipal, String... roleIdentifiers)Same ascheckRoles(PrincipalCollection subjectPrincipal, Collection<String> roleIdentifiers)but doesn't require a collection as an argument.voidAuthorizer. checkRoles(PrincipalCollection subjectPrincipal, Collection<String> roleIdentifiers)Asserts the corresponding Subject/user has all of the specified roles by returning quietly if they do or throwing anAuthorizationExceptionif they do not.voidModularRealmAuthorizer. checkRoles(PrincipalCollection principals, String... roles)CallscheckRolefor each role specified.voidModularRealmAuthorizer. checkRoles(PrincipalCollection principals, Collection<String> roles) -
Uses of AuthorizationException in org.apache.shiro.authz.aop
Methods in org.apache.shiro.authz.aop that throw AuthorizationException Modifier and Type Method Description protected voidAnnotationsAuthorizingMethodInterceptor. assertAuthorized(MethodInvocation methodInvocation)Iterates over the internalmethodInterceptorscollection, and for each one, ensures that if the interceptorsupportsthe invocation, that the interceptorassertsthat the invocation is authorized to proceed.abstract voidAuthorizingAnnotationHandler. assertAuthorized(Annotation a)Ensures the calling Subject is authorized to execute based on the directive(s) found in the given annotation.voidAuthorizingAnnotationMethodInterceptor. assertAuthorized(MethodInvocation mi)Ensures the calling Subject is authorized to execute the specifiedMethodInvocation.protected abstract voidAuthorizingMethodInterceptor. assertAuthorized(MethodInvocation methodInvocation)Asserts that the specified MethodInvocation is allowed to continue by performing any necessary authorization (access control) checks first.voidGuestAnnotationHandler. assertAuthorized(Annotation a)Ensures that the callingSubjectis NOT a user, that is, they do not have anidentitybefore continuing.voidPermissionAnnotationHandler. assertAuthorized(Annotation a)Ensures that the callingSubjecthas the Annotation's specified permissions, and if not, throws anAuthorizingExceptionindicating access is denied.voidRoleAnnotationHandler. assertAuthorized(Annotation a)Ensures that the callingSubjecthas the Annotation's specified roles, and if not, throws anAuthorizingExceptionindicating that access is denied.voidUserAnnotationHandler. assertAuthorized(Annotation a)Ensures that the callingSubjectis a user, that is, they are eitherauthenticatedor remembered via remember me services before allowing access, and if not, throws anAuthorizingExceptionindicating access is not allowed. -
Uses of AuthorizationException in org.apache.shiro.mgt
Methods in org.apache.shiro.mgt that throw AuthorizationException Modifier and Type Method Description voidAuthorizingSecurityManager. checkPermission(PrincipalCollection principals, String permission)voidAuthorizingSecurityManager. checkPermission(PrincipalCollection principals, Permission permission)voidAuthorizingSecurityManager. checkPermissions(PrincipalCollection principals, String... permissions)voidAuthorizingSecurityManager. checkPermissions(PrincipalCollection principals, Collection<Permission> permissions)voidAuthorizingSecurityManager. checkRole(PrincipalCollection principals, String role)voidAuthorizingSecurityManager. checkRoles(PrincipalCollection principals, String... roles)voidAuthorizingSecurityManager. checkRoles(PrincipalCollection principals, Collection<String> roles)SessionSessionsSecurityManager. start(SessionContext context) -
Uses of AuthorizationException in org.apache.shiro.realm
Methods in org.apache.shiro.realm that throw AuthorizationException Modifier and Type Method Description voidAuthorizingRealm. checkPermission(PrincipalCollection subjectIdentifier, String permission)voidAuthorizingRealm. checkPermission(PrincipalCollection principal, Permission permission)voidAuthorizingRealm. checkPermissions(PrincipalCollection subjectIdentifier, String... permissions)voidAuthorizingRealm. checkPermissions(PrincipalCollection principal, Collection<Permission> permissions)voidAuthorizingRealm. checkRole(PrincipalCollection principal, String role)voidAuthorizingRealm. checkRoles(PrincipalCollection principal, String... roles)voidAuthorizingRealm. checkRoles(PrincipalCollection principal, Collection<String> roles) -
Uses of AuthorizationException in org.apache.shiro.session.mgt
Methods in org.apache.shiro.session.mgt that throw AuthorizationException Modifier and Type Method Description protected abstract SessionAbstractNativeSessionManager. createSession(SessionContext context)Creates a newSession Sessioninstance based on the specified (possiblynull) initialization data.protected SessionAbstractValidatingSessionManager. createSession(SessionContext context)protected abstract SessionAbstractValidatingSessionManager. doCreateSession(SessionContext initData) -
Uses of AuthorizationException in org.apache.shiro.subject
Methods in org.apache.shiro.subject that throw AuthorizationException Modifier and Type Method Description voidSubject. checkPermission(String permission)Ensures this Subject implies the specified permission String.voidSubject. checkPermission(Permission permission)Ensures this Subjectimpliesthe specifiedPermission.voidSubject. checkPermissions(String... permissions)Ensures this Subjectimpliesall of the specified permission strings.voidSubject. checkPermissions(Collection<Permission> permissions)Ensures this Subjectimpliesall of the specified permission strings.voidSubject. checkRole(String roleIdentifier)Asserts this Subject has the specified role by returning quietly if they do or throwing anAuthorizationExceptionif they do not.voidSubject. checkRoles(String... roleIdentifiers)Same ascheckRoles(Collectionbut doesn't require a collection as a an argument.roleIdentifiers) voidSubject. checkRoles(Collection<String> roleIdentifiers)Asserts this Subject has all of the specified roles by returning quietly if they do or throwing anAuthorizationExceptionif they do not. -
Uses of AuthorizationException in org.apache.shiro.subject.support
Methods in org.apache.shiro.subject.support that throw AuthorizationException Modifier and Type Method Description protected voidDelegatingSubject. assertAuthzCheckPossible()voidDelegatingSubject. checkPermission(String permission)voidDelegatingSubject. checkPermission(Permission permission)voidDelegatingSubject. checkPermissions(String... permissions)voidDelegatingSubject. checkPermissions(Collection<Permission> permissions)voidDelegatingSubject. checkRole(String role)voidDelegatingSubject. checkRoles(String... roleIdentifiers)voidDelegatingSubject. checkRoles(Collection<String> roles)
-