def get_setting_from_keyring(self, setting_identifier, keyring_backend=None):
<EOL>if keyring_backend:<EOL><INDENT>return keyring_backend.get_password(setting_identifier, getpass.getuser())<EOL><DEDENT>try:<EOL><INDENT>import keyring<EOL><DEDENT>except ImportError:<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>return keyring.get_password(setting_identifier, getpass.getuser())<EOL><DEDENT>
Retrieves a protected setting from keyring
:param setting_identifier: must be in the format package.module.Class.setting