public interface AuthorizationManager
Subject
associated with the current AccessControlContext
, or explicitly specified, has the requested permissions.Modifier and Type | Method and Description |
---|---|
void |
checkPermission(AuthorizationPermission permission)
Verifies that the
Subject associated with the current AccessControlContext
has the requested permission. |
void |
checkPermission(AuthorizationPermission permission,
String role)
Verifies that the
Subject associated with the current AccessControlContext
has the requested permission and role. |
void |
checkPermission(Subject subject,
AuthorizationPermission permission)
Verifies that the
Subject has the requested permission. |
void |
checkPermission(Subject subject,
AuthorizationPermission permission,
String role)
Verifies that the
Subject has the requested permission and role. |
void checkPermission(AuthorizationPermission permission)
Subject
associated with the current AccessControlContext
has the requested permission. A SecurityException
is thrown otherwise.void checkPermission(Subject subject, AuthorizationPermission permission)
Subject
has the requested permission. A SecurityException
is thrown otherwise.void checkPermission(AuthorizationPermission permission, String role)
Subject
associated with the current AccessControlContext
has the requested permission and role. A SecurityException
is thrown otherwise.void checkPermission(Subject subject, AuthorizationPermission permission, String role)
Subject
has the requested permission and role.
A SecurityException
is thrown otherwise.Copyright © 2021 JBoss by Red Hat. All rights reserved.