Class SecurityRoleAssignment

  • All Implemented Interfaces:
    Serializable

    public class SecurityRoleAssignment
    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 role-mapper on the server.

    Author:
    Sudarsan Sridhar
    See Also:
    Serialized Form
    • Constructor Detail

      • SecurityRoleAssignment

        public SecurityRoleAssignment()
    • Method Detail

      • getRoleName

        public String getRoleName()
      • setRoleName

        public void setRoleName​(String name)
      • getPrincipalNames

        public List<String> getPrincipalNames()
      • addPrincipalName

        public void addPrincipalName​(String principalName)
      • isExternallyDefined

        public boolean isExternallyDefined()
      • setExternallyDefined

        public void setExternallyDefined()