def __add_default_values(self):
    '\n        Add default values if the settings info is not complete\n        '
    self.__sp.setdefault('assertionConsumerService', {})
    self.__sp['assertionConsumerService'].setdefault('binding', OneLogin_Saml2_Constants.BINDING_HTTP_POST)
    self.__sp.setdefault('attributeConsumingService', {})
    self.__sp.setdefault('singleLogoutService', {})
    self.__sp['singleLogoutService'].setdefault('binding', OneLogin_Saml2_Constants.BINDING_HTTP_REDIRECT)
    self.__idp.setdefault('singleLogoutService', {})
    self.__sp.setdefault('NameIDFormat', OneLogin_Saml2_Constants.NAMEID_UNSPECIFIED)
    self.__security.setdefault('nameIdEncrypted', False)
    self.__security.setdefault('metadataValidUntil', None)
    self.__security.setdefault('metadataCacheDuration', None)
    self.__security.setdefault('authnRequestsSigned', False)
    self.__security.setdefault('logoutRequestSigned', False)
    self.__security.setdefault('logoutResponseSigned', False)
    self.__security.setdefault('signMetadata', False)
    self.__security.setdefault('wantMessagesSigned', False)
    self.__security.setdefault('wantAssertionsSigned', False)
    self.__security.setdefault('wantNameId', True)
    self.__security.setdefault('wantAssertionsEncrypted', False)
    self.__security.setdefault('wantNameIdEncrypted', False)
    self.__security.setdefault('signatureAlgorithm', OneLogin_Saml2_Constants.RSA_SHA1)
    self.__security.setdefault('digestAlgorithm', OneLogin_Saml2_Constants.SHA1)
    self.__security.setdefault('wantAttributeStatement', True)
    self.__idp.setdefault('x509cert', '')
    self.__idp.setdefault('certFingerprint', '')
    self.__idp.setdefault('certFingerprintAlgorithm', 'sha1')
    self.__sp.setdefault('x509cert', '')
    self.__sp.setdefault('privateKey', '')
    self.__security.setdefault('requestedAuthnContext', True)
    self.__security.setdefault('failOnAuthnContextMismatch', False)
Add default values if the settings info is not complete
def __add_default_values(self):
    '\n        \n        '
    self.__sp.setdefault('assertionConsumerService', {})
    self.__sp['assertionConsumerService'].setdefault('binding', OneLogin_Saml2_Constants.BINDING_HTTP_POST)
    self.__sp.setdefault('attributeConsumingService', {})
    self.__sp.setdefault('singleLogoutService', {})
    self.__sp['singleLogoutService'].setdefault('binding', OneLogin_Saml2_Constants.BINDING_HTTP_REDIRECT)
    self.__idp.setdefault('singleLogoutService', {})
    self.__sp.setdefault('NameIDFormat', OneLogin_Saml2_Constants.NAMEID_UNSPECIFIED)
    self.__security.setdefault('nameIdEncrypted', False)
    self.__security.setdefault('metadataValidUntil', None)
    self.__security.setdefault('metadataCacheDuration', None)
    self.__security.setdefault('authnRequestsSigned', False)
    self.__security.setdefault('logoutRequestSigned', False)
    self.__security.setdefault('logoutResponseSigned', False)
    self.__security.setdefault('signMetadata', False)
    self.__security.setdefault('wantMessagesSigned', False)
    self.__security.setdefault('wantAssertionsSigned', False)
    self.__security.setdefault('wantNameId', True)
    self.__security.setdefault('wantAssertionsEncrypted', False)
    self.__security.setdefault('wantNameIdEncrypted', False)
    self.__security.setdefault('signatureAlgorithm', OneLogin_Saml2_Constants.RSA_SHA1)
    self.__security.setdefault('digestAlgorithm', OneLogin_Saml2_Constants.SHA1)
    self.__security.setdefault('wantAttributeStatement', True)
    self.__idp.setdefault('x509cert', )
    self.__idp.setdefault('certFingerprint', )
    self.__idp.setdefault('certFingerprintAlgorithm', 'sha1')
    self.__sp.setdefault('x509cert', )
    self.__sp.setdefault('privateKey', )
    self.__security.setdefault('requestedAuthnContext', True)
    self.__security.setdefault('failOnAuthnContextMismatch', False)