PasswordPolicy.fromXml constructor
PasswordPolicy.fromXml(
- XmlElement elem
Implementation
factory PasswordPolicy.fromXml(_s.XmlElement elem) {
return PasswordPolicy(
allowUsersToChangePassword:
_s.extractXmlBoolValue(elem, 'AllowUsersToChangePassword'),
expirePasswords: _s.extractXmlBoolValue(elem, 'ExpirePasswords'),
hardExpiry: _s.extractXmlBoolValue(elem, 'HardExpiry'),
maxPasswordAge: _s.extractXmlIntValue(elem, 'MaxPasswordAge'),
minimumPasswordLength:
_s.extractXmlIntValue(elem, 'MinimumPasswordLength'),
passwordReusePrevention:
_s.extractXmlIntValue(elem, 'PasswordReusePrevention'),
requireLowercaseCharacters:
_s.extractXmlBoolValue(elem, 'RequireLowercaseCharacters'),
requireNumbers: _s.extractXmlBoolValue(elem, 'RequireNumbers'),
requireSymbols: _s.extractXmlBoolValue(elem, 'RequireSymbols'),
requireUppercaseCharacters:
_s.extractXmlBoolValue(elem, 'RequireUppercaseCharacters'),
);
}