Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Geronimo login configuration namespace is http://geronimo.apache.org/xml/ns/loginconfig-1.0Image Removed and the schema file is geronimo-login-config-1.0.xsd. All types are defined in this namespace.

...

Element login-config of the login-configType type is the top-level element in the login configuration schema.
It defines login module configurations for the enclosing Security Realm GBean. Currently the only GBean that implements the SecuritRealm interface is GenericSecurityRealm.

xml
Code Block
xml
borderStylesolid
xml
<xsd:complexType name="login-configType">
	<xsd:annotation>
            <xsd:documentation>
                Defines the list of login modules for a login configuration represented by a GenericSecurityRealm
            </xsd:documentation>
      </xsd:annotation>
      <xsd:sequence>
            <xsd:choice minOccurs="0" maxOccurs="unbounded">
                <xsd:element name="login-module-ref" type="geronimo:login-module-refType" minOccurs="0" maxOccurs="unbounded"/>
                <xsd:element name="login-module" type="geronimo:login-moduleType" minOccurs="0" maxOccurs="unbounded"/>
            </xsd:choice>
      </xsd:sequence>
</xsd:complexType>

...

This is an abstract base type from which all other login module types are derived.

Code Block
xmlxml
borderStylesolid
xml
<xsd:complexType name="abstract-login-moduleType" abstract="true">
    <xsd:attribute name="control-flag" type="geronimo:control-flagType" use="required"/>
</xsd:complexType>

...

This type constrains the values of the module control flag. Values of this type emulate JAAS module combination semantics.

xml
Code Block
xml
borderStylesolid
xml
<xsd:simpleType name="control-flagType">
    <xsd:restriction base="xsd:string">
        <xsd:enumeration value="REQUIRED"/>
        <xsd:enumeration value="REQUISITE"/>
        <xsd:enumeration value="SUFFICIENT"/>
        <xsd:enumeration value="OPTIONAL"/>
    </xsd:restriction>
</xsd:simpleType>

...

Login-module-refType extends from abstract-login-moduleType.

Code Block
xmlxml
borderStylesolid
xml
<xsd:complexType name="login-module-refType">
    <xsd:complexContent>
        <xsd:extension base="geronimo:abstract-login-moduleType">
            <xsd:sequence>
                <xsd:element name="domain" type="xsd:string" minOccurs="0"/>
                <xsd:element name="server" type="xsd:string" minOccurs="0"/>
                <xsd:element name="application" type="xsd:string" minOccurs="0"/>
                <xsd:element name="module" type="xsd:string" minOccurs="0"/>
                <xsd:element name="type" type="xsd:string" minOccurs="0"/>
                <xsd:element name="name" type="xsd:string"/>
            </xsd:sequence>
        </xsd:extension>
    </xsd:complexContent>
</xsd:complexType>

...

The login-moduleType describes configuration for one login module within the enclosing GenericSecurityRealm GBean.

xml
Code Block
xml
borderStylesolid
xml
<xsd:complexType name="login-moduleType">
    <xsd:complexContent>
        <xsd:extension base="geronimo:abstract-login-moduleType">
            <xsd:sequence>
                <xsd:element name="login-domain-name" type="xsd:string"/>
                <xsd:element name="login-module-class" type="xsd:string"/>
                <xsd:element name="option" type="geronimo:optionType" minOccurs="0" maxOccurs="unbounded"/>
            </xsd:sequence>
            <xsd:attribute name="server-side" type="xsd:boolean" use="required"/>
        </xsd:extension>
    </xsd:complexContent>
</xsd:complexType>

...

This type defines login module specific option, like location of the authentication database, etc.

xml
Code Block
xml
borderStylesolid
xml
<xsd:complexType name="optionType">
    <xsd:simpleContent>
        <xsd:extension base="xsd:string">
            <xsd:attribute name="name" type="xsd:string" use="required"/>
        </xsd:extension>
    </xsd:simpleContent>
</xsd:complexType>

...