Ejemplo n.º 1
0
        public static int StoreCredentials(Uri uri, String userName, SecureString password, CachedCredentialsType type, Boolean nonInteractive)
        {
            Dictionary <String, String> attributes = new Dictionary <String, String>();

            attributes[CredentialsCacheConstants.CredentialsTypeKeyword] = type.ToString();
            attributes[CredentialsCacheConstants.NonInteractiveKeyword]  = nonInteractive.ToString();

            return(StoreCredentials(uri.AbsoluteUri, userName, password, null, attributes));
        }
Ejemplo n.º 2
0
 public static int StoreCredentials(Uri uri, String userName, String password, CachedCredentialsType type, Boolean nonInteractive)
 {
     return(StoreCredentials(uri, userName, CreateSecureString(password), type, nonInteractive));
 }