public interface IRAC
Use RACFactory class and getRAC(String type) method to return an object reference to the class that implements this RAC Interface. The default type, "RAC", is the resource access control using OpenLDAP described in EBP documentation.
IRAC - Resource Access Control Interface methods:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RESOURCERIGHT_ALL |
static java.lang.String |
RESOURCERIGHT_ALTER |
static java.lang.String |
RESOURCERIGHT_CANCEL |
static java.lang.String |
RESOURCERIGHT_CHECKPOINT |
static java.lang.String |
RESOURCERIGHT_EXECUTE |
static java.lang.String |
RESOURCERIGHT_PURGE |
static java.lang.String |
RESOURCERIGHT_READ
access rights
|
static java.lang.String |
RESOURCERIGHT_RESTART |
static java.lang.String |
RESOURCERIGHT_SUBMIT |
static java.lang.String |
RESOURCERIGHT_UPDATE |
static java.lang.String |
RESOURCERIGHT_VIEW |
static int |
RESOURCETYPE_DATASET
indexes into the resourceTypes array indicating the attribute name
used to store that resource type
|
static int |
RESOURCETYPE_JOBCLASS |
static int |
RESOURCETYPE_PROGRAM |
static int |
RESOURCETYPE_SYSOUTCLASS |
static int |
RESOURCETYPE_TRANSACTION |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
Attribute(java.lang.String username,
java.lang.String attributename)
Attribute -- Return the attribute value associated with attributeName
from the directory entry of the given user
|
java.util.List<java.lang.String> |
Authenticate(java.lang.String username,
java.lang.String password)
Authenticate - Return a list of Roles if the username and password are authenticated against
this Resource Access Control module
|
boolean |
Authorize(java.lang.String username,
java.util.List<java.lang.String> grouplist,
int type,
java.lang.String resource,
java.lang.String access)
Authorize -- Return true if the user is authorized to access a resource
|
java.util.List<java.lang.String> |
GetGroupsForUser(java.lang.String username)
GetGroupsForUser - get groups (roles) based on a perviously authenticated username.
|
boolean |
IsRACon()
IsRACon -- returns whether resource access control
is in effect for this EBP or ETP, which is determined by
whether the Setup succeeded or not
|
boolean |
Setup(java.util.Properties global)
Setup() -- setup the resource access control module
using the configuration parameters specific to that
module.
|
void |
TearDown()
TearDown() -- close RAC
|
static final int RESOURCETYPE_DATASET
static final int RESOURCETYPE_JOBCLASS
static final int RESOURCETYPE_SYSOUTCLASS
static final int RESOURCETYPE_TRANSACTION
static final int RESOURCETYPE_PROGRAM
static final java.lang.String RESOURCERIGHT_READ
static final java.lang.String RESOURCERIGHT_UPDATE
static final java.lang.String RESOURCERIGHT_ALTER
static final java.lang.String RESOURCERIGHT_SUBMIT
static final java.lang.String RESOURCERIGHT_CANCEL
static final java.lang.String RESOURCERIGHT_RESTART
static final java.lang.String RESOURCERIGHT_CHECKPOINT
static final java.lang.String RESOURCERIGHT_VIEW
static final java.lang.String RESOURCERIGHT_PURGE
static final java.lang.String RESOURCERIGHT_EXECUTE
static final java.lang.String RESOURCERIGHT_ALL
boolean Setup(java.util.Properties global)
global
- the global set of Resource Access Control properties as
defined by the RAC module. EBP calls Setup() with all "ebp.rac.*"
properties, ETP calls Setup() with the Security Context deployment
settings. Properties are specific to the module.
The default RAC module uses LDAP to authenticate and authorize and its configuration properties, described in EBP documentation, are used to connect and search the LDAP server.
void TearDown()
boolean IsRACon()
java.util.List<java.lang.String> GetGroupsForUser(java.lang.String username)
username
- - the user namejava.util.List<java.lang.String> Authenticate(java.lang.String username, java.lang.String password)
username
- Username to look uppassword
- Password or other credentials to use in
authenticating this usernameboolean Authorize(java.lang.String username, java.util.List<java.lang.String> grouplist, int type, java.lang.String resource, java.lang.String access)
username
- the username requesting access to this resourcegrouplist
- the list of groups to check againsttype
- of resource (e.g., 0:dataset, 1:jobclass, 2:outputclass)resource
- the resource name (e.g., HCI00.MYDATA.DAT, Z, C)access
- the access requested (e.g., read, write, submit, view)java.lang.String Attribute(java.lang.String username, java.lang.String attributename)
username
- the username requesting access to this attributeattributename
- the requested directory entry to look up