|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use AuthorizationException | |
---|---|
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 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.session.mgt | SessionManager components supporting enterprise session management. |
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. |
Uses of AuthorizationException in org.apache.shiro.authz |
---|
Subclasses of AuthorizationException in org.apache.shiro.authz | |
---|---|
class |
HostUnauthorizedException
Thrown 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. |
class |
UnauthenticatedException
Exception thrown when attempting to execute an authorization action when a successful authentication hasn't yet occurred. |
class |
UnauthorizedException
Thrown to indicate a requested operation or access to a requested resource is not allowed. |
Methods in org.apache.shiro.authz that throw AuthorizationException | |
---|---|
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 Permission.implies(Permission) implies} the specified Permission. |
void |
ModularRealmAuthorizer.checkPermission(PrincipalCollection principals,
String permission)
If ! isPermitted(permission) , throws
an UnauthorizedException otherwise returns quietly. |
void |
Authorizer.checkPermission(PrincipalCollection subjectPrincipal,
String permission)
Ensures the corresponding Subject/user implies the specified permission String. |
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. |
void |
ModularRealmAuthorizer.checkPermissions(PrincipalCollection principals,
String... permissions)
If ! isPermitted(permission) ,
throws an UnauthorizedException otherwise returns quietly. |
void |
Authorizer.checkPermissions(PrincipalCollection subjectPrincipal,
String... permissions)
Ensures the corresponding Subject/user implies all of the
specified permission strings. |
void |
ModularRealmAuthorizer.checkRole(PrincipalCollection principals,
String role)
If ! hasRole(role) , throws
an UnauthorizedException otherwise returns quietly. |
void |
Authorizer.checkRole(PrincipalCollection subjectPrincipal,
String roleIdentifier)
Asserts the corresponding Subject/user has the specified role by returning quietly if they do or throwing an AuthorizationException if they do not. |
void |
ModularRealmAuthorizer.checkRoles(PrincipalCollection principals,
Collection<String> roles)
Calls {@link #checkRoles(PrincipalCollection principals, String... |
void |
Authorizer.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 an AuthorizationException if they do not. |
void |
ModularRealmAuthorizer.checkRoles(PrincipalCollection principals,
String... roles)
Calls checkRole for each role specified. |
void |
Authorizer.checkRoles(PrincipalCollection subjectPrincipal,
String... roleIdentifiers)
Same as checkRoles(PrincipalCollection subjectPrincipal, Collection<String> roleIdentifiers) but doesn't require a collection
as an argument. |
Uses of AuthorizationException in org.apache.shiro.authz.aop |
---|
Methods in org.apache.shiro.authz.aop that throw AuthorizationException | |
---|---|
void |
UserAnnotationHandler.assertAuthorized(Annotation a)
Ensures that the calling Subject is a user, that is, they are either
authenticated or remembered via remember
me services before allowing access, and if not, throws an
AuthorizingException indicating access is not allowed. |
void |
RoleAnnotationHandler.assertAuthorized(Annotation a)
Ensures that the calling Subject has the Annotation's specified roles, and if not, throws an
AuthorizingException indicating that access is denied. |
void |
PermissionAnnotationHandler.assertAuthorized(Annotation a)
Ensures that the calling Subject has the Annotation's specified permissions, and if not, throws an
AuthorizingException indicating access is denied. |
void |
GuestAnnotationHandler.assertAuthorized(Annotation a)
Ensures that the calling Subject is NOT a user, that is, they do not
have an identity before continuing. |
abstract void |
AuthorizingAnnotationHandler.assertAuthorized(Annotation a)
Ensures the calling Subject is authorized to execute based on the directive(s) found in the given annotation. |
protected abstract void |
AuthorizingMethodInterceptor.assertAuthorized(MethodInvocation methodInvocation)
Asserts that the specified MethodInvocation is allowed to continue by performing any necessary authorization (access control) checks first. |
void |
AuthorizingAnnotationMethodInterceptor.assertAuthorized(MethodInvocation mi)
Ensures the calling Subject is authorized to execute the specified MethodInvocation . |
protected void |
AnnotationsAuthorizingMethodInterceptor.assertAuthorized(MethodInvocation methodInvocation)
Iterates over the internal methodInterceptors collection, and for each one,
ensures that if the interceptor
supports
the invocation, that the interceptor
asserts
that the invocation is authorized to proceed. |
Uses of AuthorizationException in org.apache.shiro.mgt |
---|
Methods in org.apache.shiro.mgt that throw AuthorizationException | |
---|---|
void |
AuthorizingSecurityManager.checkPermission(PrincipalCollection principals,
Permission permission)
|
void |
AuthorizingSecurityManager.checkPermission(PrincipalCollection principals,
String permission)
|
void |
AuthorizingSecurityManager.checkPermissions(PrincipalCollection principals,
Collection<Permission> permissions)
|
void |
AuthorizingSecurityManager.checkPermissions(PrincipalCollection principals,
String... permissions)
|
void |
AuthorizingSecurityManager.checkRole(PrincipalCollection principals,
String role)
|
void |
AuthorizingSecurityManager.checkRoles(PrincipalCollection principals,
Collection<String> roles)
|
void |
AuthorizingSecurityManager.checkRoles(PrincipalCollection principals,
String... roles)
|
Session |
SessionsSecurityManager.start(SessionContext context)
|
Uses of AuthorizationException in org.apache.shiro.realm |
---|
Methods in org.apache.shiro.realm that throw AuthorizationException | |
---|---|
void |
AuthorizingRealm.checkPermission(PrincipalCollection principal,
Permission permission)
|
void |
AuthorizingRealm.checkPermission(PrincipalCollection subjectIdentifier,
String permission)
|
void |
AuthorizingRealm.checkPermissions(PrincipalCollection principal,
Collection<Permission> permissions)
|
void |
AuthorizingRealm.checkPermissions(PrincipalCollection subjectIdentifier,
String... permissions)
|
void |
AuthorizingRealm.checkRole(PrincipalCollection principal,
String role)
|
void |
AuthorizingRealm.checkRoles(PrincipalCollection principal,
Collection<String> roles)
|
void |
AuthorizingRealm.checkRoles(PrincipalCollection principal,
String... roles)
|
Uses of AuthorizationException in org.apache.shiro.session.mgt |
---|
Methods in org.apache.shiro.session.mgt that throw AuthorizationException | |
---|---|
protected Session |
AbstractValidatingSessionManager.createSession(SessionContext context)
|
protected abstract Session |
AbstractNativeSessionManager.createSession(SessionContext context)
Creates a new Session Session instance based on the specified (possibly null )
initialization data. |
protected abstract Session |
AbstractValidatingSessionManager.doCreateSession(SessionContext initData)
|
Uses of AuthorizationException in org.apache.shiro.subject |
---|
Methods in org.apache.shiro.subject that throw AuthorizationException | |
---|---|
void |
Subject.checkPermission(Permission permission)
Ensures this Subject implies the specified Permission . |
void |
Subject.checkPermission(String permission)
Ensures this Subject implies the specified permission String. |
void |
Subject.checkPermissions(Collection<Permission> permissions)
Ensures this Subject implies all of the
specified permission strings. |
void |
Subject.checkPermissions(String... permissions)
Ensures this Subject implies all of the
specified permission strings. |
void |
Subject.checkRole(String roleIdentifier)
Asserts this Subject has the specified role by returning quietly if they do or throwing an AuthorizationException if they do not. |
void |
Subject.checkRoles(Collection<String> roleIdentifiers)
Asserts this Subject has all of the specified roles by returning quietly if they do or throwing an AuthorizationException if they do not. |
void |
Subject.checkRoles(String... roleIdentifiers)
Same as checkRoles(Collection but
doesn't require a collection as a an argument. |
Uses of AuthorizationException in org.apache.shiro.subject.support |
---|
Methods in org.apache.shiro.subject.support that throw AuthorizationException | |
---|---|
protected void |
DelegatingSubject.assertAuthzCheckPossible()
|
void |
DelegatingSubject.checkPermission(Permission permission)
|
void |
DelegatingSubject.checkPermission(String permission)
|
void |
DelegatingSubject.checkPermissions(Collection<Permission> permissions)
|
void |
DelegatingSubject.checkPermissions(String... permissions)
|
void |
DelegatingSubject.checkRole(String role)
|
void |
DelegatingSubject.checkRoles(Collection<String> roles)
|
void |
DelegatingSubject.checkRoles(String... roleIdentifiers)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |