public interface SAFAuthorizationService
Modifier and Type | Method and Description |
---|---|
boolean |
isAuthorized(SAFCredential safCredential,
java.lang.String className,
java.lang.String resourceName,
AccessLevel accessLevel)
Determines if the identity represented by the given SAFCredential has the specified
access to the given SAF resource in the given SAF class.
|
boolean |
isAuthorized(SAFCredential safCredential,
java.lang.String className,
java.lang.String resourceName,
AccessLevel accessLevel,
LogOption logOption)
Determines if the identity represented by the given SAFCredential has the specified
access to the given SAF resource in the given SAF class.
|
boolean |
isAuthorized(java.lang.String className,
java.lang.String resourceName,
AccessLevel accessLevel)
Determines if the Subject on the calling thread has the specified access to the
given SAF resource in the given SAF class.
|
boolean |
isAuthorized(java.lang.String className,
java.lang.String resourceName,
AccessLevel accessLevel,
LogOption logOption)
Determines if the Subject on the calling thread has the specified access to the
given SAF resource in the given SAF class.
|
boolean |
isAuthorized(java.lang.String mvsUserId,
java.lang.String className,
java.lang.String resourceName,
AccessLevel accessLevel,
LogOption logOption)
Determines if the identity represented by the given mvsUserId has the specified
access to the given SAF resource in the given SAF class.
|
boolean |
isAuthorized(javax.security.auth.Subject subject,
java.lang.String className,
java.lang.String resourceName,
AccessLevel accessLevel)
Determines if the given Subject has the specified access to the given SAF resource
in the given SAF class.
|
boolean |
isAuthorized(javax.security.auth.Subject subject,
java.lang.String className,
java.lang.String resourceName,
AccessLevel accessLevel,
LogOption logOption)
Determines if the given Subject has the specified access to the given SAF resource
in the given SAF class.
|
boolean isAuthorized(java.lang.String className, java.lang.String resourceName, AccessLevel accessLevel)
WebSphereRuntimePermission
with the target name of safAuthorizationService
.
A java.lang.SecurityException
is thrown if Java 2 Security
Manager is installed and the code is not granted the permission.className
- The SAF class of the protected resource.resourceName
- The SAF protected resource.accessLevel
- The required access level. If null, the default is AccessLevel.READ.java.lang.NullPointerException
- if className or resourceName is null.boolean isAuthorized(java.lang.String className, java.lang.String resourceName, AccessLevel accessLevel, LogOption logOption)
WebSphereRuntimePermission
with the target name of safAuthorizationService
.
A java.lang.SecurityException
is thrown if Java 2 Security
Manager is installed and the code is not granted the permission.className
- The SAF class of the protected resource.resourceName
- The SAF protected resource.accessLevel
- The required access level. If null, the default is AccessLevel.READ.logOption
- The SAF logging option to use for this request. If null, the default is LogOption.ASIS.java.lang.NullPointerException
- if className or resourceName is null.boolean isAuthorized(javax.security.auth.Subject subject, java.lang.String className, java.lang.String resourceName, AccessLevel accessLevel)
WebSphereRuntimePermission
with the target name of safAuthorizationService
.
A java.lang.SecurityException
is thrown if Java 2 Security
Manager is installed and the code is not granted the permission.subject
- The Subject to authorize.className
- The SAF class of the protected resource.resourceName
- The SAF protected resource.accessLevel
- The required access level. If null, the default is AccessLevel.READ.java.lang.NullPointerException
- if subject, className or resourceName is null.boolean isAuthorized(javax.security.auth.Subject subject, java.lang.String className, java.lang.String resourceName, AccessLevel accessLevel, LogOption logOption)
WebSphereRuntimePermission
with the target name of safAuthorizationService
.
A java.lang.SecurityException
is thrown if Java 2 Security
Manager is installed and the code is not granted the permission.subject
- The Subject to authorize.className
- The SAF class of the protected resource.resourceName
- The SAF protected resource.accessLevel
- The required access level. If null, the default is AccessLevel.READ.logOption
- The SAF logging option to use for this request. If null, the default is LogOption.ASIS.java.lang.NullPointerException
- if subject, className or resourceName is null.boolean isAuthorized(SAFCredential safCredential, java.lang.String className, java.lang.String resourceName, AccessLevel accessLevel)
WebSphereRuntimePermission
with the target name of safAuthorizationService
.
A java.lang.SecurityException
is thrown if Java 2 Security
Manager is installed and the code is not granted the permission.safCredential
- The SAFCredential to authorize.className
- The SAF class of the protected resource.resourceName
- The SAF protected resource.accessLevel
- The required access level. If null, the default is AccessLevel.READ.java.lang.NullPointerException
- if safCredential, className or resourceName is null.boolean isAuthorized(SAFCredential safCredential, java.lang.String className, java.lang.String resourceName, AccessLevel accessLevel, LogOption logOption)
WebSphereRuntimePermission
with the target name of safAuthorizationService
.
A java.lang.SecurityException
is thrown if Java 2 Security
Manager is installed and the code is not granted the permission.safCredential
- The SAFCredential to authorize.className
- The SAF class of the protected resource.resourceName
- The SAF protected resource.accessLevel
- The required access level. If null, the default is AccessLevel.READ.logOption
- The SAF logging option to use for this request. If null, the default is LogOption.ASIS.java.lang.NullPointerException
- if safCredential, className or resourceName is null.boolean isAuthorized(java.lang.String mvsUserId, java.lang.String className, java.lang.String resourceName, AccessLevel accessLevel, LogOption logOption) throws SAFAuthorizationException
WebSphereRuntimePermission
with the target name of safAuthorizationService
.
A java.lang.SecurityException
is thrown if Java 2 Security
Manager is installed and the code is not granted the permission.mvsUserId
- The user to authorize.className
- The SAF class of the protected resource.resourceName
- The SAF protected resource.accessLevel
- The required access level. If null, the default is AccessLevel.READ.logOption
- The SAF logging option to use for this request. If null, the default is LogOption.ASIS.java.lang.NullPointerException
- if mvsUserId, className or resourceName is null.SAFAuthorizationException
- if the mvsUserId could not be authenticated