public interface SAFRoleMapper
In order to have WebSphere instantiate and call an implementation of this
interface, the security custom property
Please note that this interface is non-standard and is likely to be
removed in future release.com.ibm.websphere.security.SAF.RoleMapper
must be set to
the name of the class to instantiate.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CELL_NAME
The context
Map key to use to obtain the cell name. |
static java.lang.String |
CELL_SHORT_NAME
The context
Map key to use to obtain the cell name. |
static java.lang.String |
DOMAIN_NAME
Deprecated.
As of WebSphere V7.0, replaced by
PROFILE_PREFIX
The context Map key to use to obtain the domain name. |
static java.lang.String |
DOMAIN_TYPE
Deprecated.
As of WebSphere V7.0, replaced by
PROFILE_PREFIX
The context Map key to use to determine whether or not to use a prefix for SAF profile names. |
static java.lang.String |
PROFILE_PREFIX
The context
Map key to use to determine the SAF profile prefix |
static java.lang.String |
SERVER_NAME
The context
Map key to use to obtain the server name. |
static java.lang.String |
SERVER_SHORT_NAME
The context
Map key to use to obtain the server short name. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getProfileFromRole(java.lang.String applicationName,
java.lang.String role)
Map a role name to a valid SAF profile.
|
void |
initialize(java.util.Properties context)
This method is called by the WebSphere security component to
provide a cell and server context to the
SAFRoleMapper
instance. |
static final java.lang.String SERVER_NAME
Map
key to use to obtain the server name.static final java.lang.String SERVER_SHORT_NAME
Map
key to use to obtain the server short name.static final java.lang.String CELL_NAME
Map
key to use to obtain the cell name.static final java.lang.String CELL_SHORT_NAME
Map
key to use to obtain the cell name.static final java.lang.String DOMAIN_NAME
PROFILE_PREFIX
The context Map
key to use to obtain the domain name.static final java.lang.String DOMAIN_TYPE
PROFILE_PREFIX
The context Map
key to use to determine whether or not to use a prefix for SAF profile names.static final java.lang.String PROFILE_PREFIX
Map
key to use to determine the SAF profile prefixvoid initialize(java.util.Properties context)
SAFRoleMapper
instance.
The context is an instance of a java.util.Properties
object that contains the following information:
The context information can be used when building the profile used for SAF authorization and delegation.
context
- the server instance execution contextjava.lang.String getProfileFromRole(java.lang.String applicationName, java.lang.String role)
EJBROLE
SAF class that will be used for
authorization and delegation decisions.applicationName
- the application name from the
application deployment descriptorrole
- the application defined role name from the
application deployment descriptor