- builder.addPropertyValue("supportsPassiveAuth", XMLHelper.getAttributeValueAsBoolean(config.getAttributeNodeNS(
- null, "supportsPassiveAuthentication")));
-
- builder.addPropertyValue("reportPreviousSessionAuthnMethod", XMLHelper.getAttributeValueAsBoolean(config
- .getAttributeNodeNS(null, "reportPreviousSessionAuthnMethod")));
+ if (config.hasAttributeNS(null, "supportsPassiveAuthentication")) {
+ builder.addPropertyValue("supportsPassiveAuth", XMLHelper.getAttributeValueAsBoolean(config
+ .getAttributeNodeNS(null, "supportsPassiveAuthentication")));
+ } else {
+ builder.addPropertyValue("supportsPassiveAuth", false);
+ }
+
+ if (config.hasAttributeNS(null, "reportPreviousSessionAuthnMethod")) {
+ builder.addPropertyValue("reportPreviousSessionAuthnMethod", XMLHelper.getAttributeValueAsBoolean(config
+ .getAttributeNodeNS(null, "reportPreviousSessionAuthnMethod")));
+ } else {
+ builder.addPropertyValue("reportPreviousSessionAuthnMethod", false);
+ }