FileDocCategorySizeDatePackage
SecurityRoleMapper.javaAPI DocGlassfish v2 API4132Fri May 04 22:31:36 BST 2007com.sun.enterprise.deployment.interfaces

SecurityRoleMapper

public interface SecurityRoleMapper
This interface defines the protocol used by the DOL to access the role mapping information of a J2EE application. This class is implemented by other modules and their instanciation is done through the SecurityRoleMapperFactory class.
author
Jerome Dochez

Fields Summary
Constructors Summary
Methods Summary
public voidassignRole(java.security.Principal p, com.sun.enterprise.deployment.Role r, com.sun.enterprise.deployment.RootDeploymentDescriptor rdd)
Assigns a Principal to the specified role.

param
p The principal that needs to be assigned to the role.
param
r The Role the principal is being assigned to.
param
rdd The descriptor of the module calling assignRole.

public java.util.EnumerationgetGroupsAssignedTo(com.sun.enterprise.deployment.Role r)
Returns an enumeration of Groups assigned to the given role

param
The Role to which the groups are assigned to.

public java.lang.StringgetName()

return
the role mapper application name

public java.util.MapgetRoleToSubjectMapping()

public java.util.IteratorgetRoles()

return
an iterator on all the assigned roles

public java.util.EnumerationgetUsersAssignedTo(com.sun.enterprise.deployment.Role r)

rturns
an enumeration of Principals assigned to the given role
param
The Role to which the principals are assigned to.

public voidsetName(java.lang.String name)
Set the role mapper application name

param
the app name

public voidunassignPrincipalFromRole(com.sun.enterprise.deployment.Role role, java.security.Principal principal)
Remove the given role-principal mapping

param
role, Role object
param
principal, the principal

public voidunassignRole(com.sun.enterprise.deployment.Role role)
Remove all the role mapping information for this role

param
role, the role object