Beispiel #1
0
        private void SaveCredentials()
        {
            var buffer = new UTF8Encoding(false).GetBytes(LoginName);

            _securityProvider.Save("login", buffer);

            using (var wrapper = new SecureStringWrapper(Token, Encoding.UTF8))
            {
                _securityProvider.Save("token", wrapper.ToByteArray());
            }

            _log.Log("Credential are saved");
        }