Class SecurityRoleMapping

  • All Implemented Interfaces:
    Serializable

    public class SecurityRoleMapping
    extends RuntimeDescriptor
    This is the in memory representation of the security-role-mapping information. Note that we are keeping just the literal Strings in this object. The implementation of Principal is not instantiated here. This is because 1) the dol should avoid loading any classes as the classloaders used for deployment and runtime can be different. 2) verifier uses this information and it has not access to the rolemaper on the server.
    Author:
    Jerome Dochez
    See Also:
    Serialized Form
    • Constructor Detail

      • SecurityRoleMapping

        public SecurityRoleMapping()
    • Method Detail

      • getRoleName

        public String getRoleName()
      • setRoleName

        public void setRoleName​(String name)
      • getGroupNames

        public List<String> getGroupNames()
      • addGroupName

        public void addGroupName​(String g)
      • getPrincipalName

        public String[] getPrincipalName()
        Deprecated.
        This method needs to be removed once the custom principal is fully supported. We keep it for now for backward compatiblity in API. Note that this method only returns the name of the principals, not their class-names. Use with caution!