Sun GlassFish Enterprise Server v3 Prelude Application Deployment Guide

principal-name

Contains the principal (user) name.

In an enterprise bean, specifies the principal (user) name that has the run-as role specified.

Superelements

security-role-mapping (sun-web.xml, sun-ejb-jar.xml), servlet (sun-web.xml)

Subelements

none - contains data

Attributes

The following table describes attributes for the principal-name element.

Table A–65 principal-name Attributes

Attribute 

Default 

Description 

class-name

com.sun.enterprise.deployment.PrincipalImpl

(optional) Specifies the custom principal implementation class corresponding to the named principal.