Definition Type: Element
Name: pwpolicy_state
Namespace: http://oval.mitre.org/XMLSchema/oval-definitions-5#macos
Type: oval-def:StateType
Containing Schema: macos-definitions-schema.xsd
Abstract
Collapse XSD Schema Diagram:
Drilldown into requiresNumeric in schema macos-definitions-schema_xsd Drilldown into requiresAlpha in schema macos-definitions-schema_xsd Drilldown into passwordCannotBeName in schema macos-definitions-schema_xsd Drilldown into minChars in schema macos-definitions-schema_xsd Drilldown into maxFailedLoginAttempts in schema macos-definitions-schema_xsd Drilldown into maxChars in schema macos-definitions-schema_xsd Drilldown into directory_node in schema macos-definitions-schema_xsd Drilldown into userpass in schema macos-definitions-schema_xsd Drilldown into username in schema macos-definitions-schema_xsd Drilldown into notes in schema oval-definitions-schema_xsd Drilldown into Signature in schema xmldsig-core-schema_xsd Drilldown into deprecated in schema oval-definitions-schema_xsd Drilldown into comment in schema oval-definitions-schema_xsd Drilldown into operator in schema oval-definitions-schema_xsd Drilldown into version in schema oval-definitions-schema_xsd Drilldown into id in schema oval-definitions-schema_xsd Drilldown into StateType in schema oval-definitions-schema_xsdXSD Diagram of pwpolicy_state in schema macos-definitions-schema_xsd (Open Vulnerability and Assessment Language (OVAL®))
Collapse XSD Schema Code:
<xsd:element name="pwpolicy_state" substitutionGroup="oval-def:state">
    <xsd:annotation>
        <xsd:documentation />
    </xsd:annotation>
    <xsd:complexType>
        <xsd:complexContent>
            <xsd:extension base="oval-def:StateType">
                <xsd:sequence>
                    <xsd:element name="username" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
                        <xsd:annotation>
                            <xsd:documentation />
                            <xsd:appinfo>
                                <sch:pattern id="pwpsteusername" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="macos-def:pwpolicy_state/macos-def:username">
                                        <sch:assert test="not(@datatype) or @datatype='string'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the username entity of a pwpolicy_state should be 'string'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="userpass" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
                        <xsd:annotation>
                            <xsd:documentation />
                            <xsd:appinfo>
                                <sch:pattern id="pwpsteuserpass" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="macos-def:pwpolicy_state/macos-def:userpass">
                                        <sch:assert test="not(@datatype) or @datatype='string'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the userpass entity of a pwpolicy_state should be 'string'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="directory_node" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
                        <xsd:annotation>
                            <xsd:documentation />
                            <xsd:appinfo>
                                <sch:pattern id="pwpstedirectory_node" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="macos-def:pwpolicy_state/macos-def:directory_node">
                                        <sch:assert test="not(@datatype) or @datatype='string'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the directory_node entity of a pwpolicy_state should be 'string'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="maxChars" type="oval-def:EntityStateIntType" minOccurs="0" maxOccurs="1">
                        <xsd:annotation>
                            <xsd:documentation>Maximum number of characters allowed in a password.</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="pwpstemaxChars" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="macos-def:pwpolicy_state/macos-def:maxChars">
                                        <sch:assert test="not(@datatype) or @datatype='int'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the maxChars entity of a pwpolicy_state should be 'int'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="maxFailedLoginAttempts" type="oval-def:EntityStateIntType" minOccurs="0" maxOccurs="1">
                        <xsd:annotation>
                            <xsd:documentation>Maximum number of failed logins before the account is locked.</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="pwpstemaxFailedLoginAttempts" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="macos-def:pwpolicy_state/macos-def:maxFailedLoginAttempts">
                                        <sch:assert test="not(@datatype) or @datatype='int'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the maxFailedLoginAttempts entity of a pwpolicy_state should be 'int'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="minChars" type="oval-def:EntityStateIntType" minOccurs="0" maxOccurs="1">
                        <xsd:annotation>
                            <xsd:documentation>Minimum number of characters allowed in a password.</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="pwpsteminChars" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="macos-def:pwpolicy_state/macos-def:minChars">
                                        <sch:assert test="not(@datatype) or @datatype='int'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the minChars entity of a pwpolicy_state should be 'int'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="passwordCannotBeName" type="oval-def:EntityStateBoolType" minOccurs="0" maxOccurs="1">
                        <xsd:annotation>
                            <xsd:documentation>Defines if the password is allowed to be the same as the username or not</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="pwpstepasswordCannotBeName" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="macos-def:pwpolicy_state/macos-def:passwordCannotBeName">
                                        <sch:assert test="not(@datatype) or @datatype='boolean'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the passwordCannotBeName entity of a pwpolicy_state should be 'boolean'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="requiresAlpha" type="oval-def:EntityStateBoolType" minOccurs="0" maxOccurs="1">
                        <xsd:annotation>
                            <xsd:documentation>Defines if the password must contain an alphabetical character or not</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="pwpsterequiresAlpha" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="macos-def:pwpolicy_state/macos-def:requiresAlpha">
                                        <sch:assert test="not(@datatype) or @datatype='boolean'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the requiresAlpha entity of a pwpolicy_state should be 'boolean'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="requiresNumeric" type="oval-def:EntityStateBoolType" minOccurs="0" maxOccurs="1">
                        <xsd:annotation>
                            <xsd:documentation>Defines if the password must contain an numeric character or not</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="pwpsterequiresNumeric" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="macos-def:pwpolicy_state/macos-def:requiresNumeric">
                                        <sch:assert test="not(@datatype) or @datatype='boolean'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the requiresNumeric entity of a pwpolicy_state should be 'boolean'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
</xsd:element>
Collapse Child Elements:
Name Type Min Occurs Max Occurs
Signature ds:Signature 0 1
notes oval-def:notes 0 1
username macos-def:username 0 1
userpass macos-def:userpass 0 1
directory_node macos-def:directory_node 0 1
maxChars macos-def:maxChars 0 1
maxFailedLoginAttempts macos-def:maxFailedLoginAttempts 0 1
minChars macos-def:minChars 0 1
passwordCannotBeName macos-def:passwordCannotBeName 0 1
requiresAlpha macos-def:requiresAlpha 0 1
requiresNumeric macos-def:requiresNumeric 0 1
Collapse Child Attributes:
Name Type Default Value Use
id oval-def:id Required
version oval-def:version Required
operator oval-def:operator AND Optional
comment oval-def:comment Optional
deprecated oval-def:deprecated false Optional
Collapse Derivation Tree:
Collapse References:
oval-def:state