Home » geronimo-eclipse-plugin-2.2-source-release » org.apache.geronimo.xml.ns.security_1 » [javadoc | source]
org.apache.geronimo.xml.ns.security_1
public class: SecurityType [javadoc | source]
java.lang.Object
   org.apache.geronimo.xml.ns.security_1.SecurityType
Security entries If this element is present, all web and EJB modules MUST make the appropriate access checks as outlined in the JACC spec.

Java class for securityType complex type.

The following schema fragment specifies the expected content contained within this class.

<complexType name="securityType">
  <complexContent>
    <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      <sequence>
        <element name="description" type="{http://geronimo.apache.org/xml/ns/security-1.1}descriptionType" maxOccurs="unbounded" minOccurs="0"/>
        <element name="default-principal" type="{http://geronimo.apache.org/xml/ns/security-1.1}default-principalType"/>
        <element name="role-mappings" type="{http://geronimo.apache.org/xml/ns/security-1.1}role-mappingsType" minOccurs="0"/>
      </sequence>
      <attribute name="default-role" type="{http://www.w3.org/2001/XMLSchema}string" />
      <attribute name="doas-current-caller" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
      <attribute name="use-context-handler" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
    </restriction>
  </complexContent>
</complexType>
Field Summary
protected  List<DescriptionType> description     
protected  DefaultPrincipalType defaultPrincipal     
protected  RoleMappingsType roleMappings     
protected  String defaultRole     
protected  Boolean doasCurrentCaller     
protected  Boolean useContextHandler     
Method from org.apache.geronimo.xml.ns.security_1.SecurityType Summary:
getDefaultPrincipal,   getDefaultRole,   getDescription,   getRoleMappings,   isDoasCurrentCaller,   isUseContextHandler,   setDefaultPrincipal,   setDefaultRole,   setDoasCurrentCaller,   setRoleMappings,   setUseContextHandler
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.geronimo.xml.ns.security_1.SecurityType Detail:
 public DefaultPrincipalType getDefaultPrincipal() 
    Gets the value of the defaultPrincipal property.
 public String getDefaultRole() 
    Gets the value of the defaultRole property.
 public List<DescriptionType> getDescription() 
    Gets the value of the description property.

    This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the description property.

    For example, to add a new item, do as follows:

       getDescription().add(newItem);
    

    Objects of the following type(s) are allowed in the list DescriptionType

 public RoleMappingsType getRoleMappings() 
    Gets the value of the roleMappings property.
 public boolean isDoasCurrentCaller() 
    Gets the value of the doasCurrentCaller property.
 public boolean isUseContextHandler() 
    Gets the value of the useContextHandler property.
 public  void setDefaultPrincipal(DefaultPrincipalType value) 
    Sets the value of the defaultPrincipal property.
 public  void setDefaultRole(String value) 
    Sets the value of the defaultRole property.
 public  void setDoasCurrentCaller(Boolean value) 
    Sets the value of the doasCurrentCaller property.
 public  void setRoleMappings(RoleMappingsType value) 
    Sets the value of the roleMappings property.
 public  void setUseContextHandler(Boolean value) 
    Sets the value of the useContextHandler property.