must be set to
the name of the class to instantiate.
Please note that this interface is non-standard and is likely to be
removed in future release.
Field Summary |
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
The context Map key to use to obtain the domain name. |
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. |
Method Summary |
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. |
SERVER_NAME
public static final java.lang.String SERVER_NAME
- The context
Map
key to use to obtain the server name.
- See Also:
- Constant Field Values
SERVER_SHORT_NAME
public static final java.lang.String SERVER_SHORT_NAME
- The context
Map
key to use to obtain the server short name.
- See Also:
- Constant Field Values
CELL_NAME
public static final java.lang.String CELL_NAME
- The context
Map
key to use to obtain the cell name.
- See Also:
- Constant Field Values
CELL_SHORT_NAME
public static final java.lang.String CELL_SHORT_NAME
- The context
Map
key to use to obtain the cell name.
- See Also:
- Constant Field Values
DOMAIN_NAME
public static final java.lang.String DOMAIN_NAME
- The context
Map
key to use to obtain the domain name.
- See Also:
- Constant Field Values
initialize
public 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.
The context is an instance of a java.util.Properties
object that contains the following information:
- Server Name - Keyed by SERVER_NAME.
- Server Short Name - Keyed by SERVER_SHORT_NAME.
- Cell Name - Keyed by CELL_NAME.
- Cell Short Name - Keyed by CELL_SHORT_NAME.
- Domain Name - Keyed by DOMAIN_NAME. This property
will be null if a z/OS security domain name was not
configured.
The context information can be used when building the profile
used for SAF authorization and delegation.
- Parameters:
context
- the server instance execution context
getProfileFromRole
public java.lang.String getProfileFromRole(java.lang.String applicationName,
java.lang.String role)
- Map a role name to a valid SAF profile. This method is called
by the security component to build a profile name in the
EJBROLE
SAF class that will be used for
authorization and delegation decisions.
- Parameters:
applicationName
- the application name from the
application deployment descriptorrole
- the application defined role name from the
application deployment descriptor
- Returns:
- the mapped profile of the role