예제 #1
0
 internal PasswordCredentialImpl(Models.PasswordCredential passwordCredential)
     : base(!String.IsNullOrEmpty(passwordCredential.CustomKeyIdentifier) ? System.Text.Encoding.UTF8.GetString(System.Convert.FromBase64String(passwordCredential.CustomKeyIdentifier)) : passwordCredential.KeyId, passwordCredential)
 {
     if (!String.IsNullOrEmpty(passwordCredential.CustomKeyIdentifier))
     {
         name = System.Text.Encoding.UTF8.GetString(System.Convert.FromBase64String(passwordCredential.CustomKeyIdentifier));
     }
     else
     {
         this.name = passwordCredential.KeyId;
     }
 }
 internal PasswordCredentialImpl(Models.PasswordCredential passwordCredential)
     : base(passwordCredential.CustomKeyIdentifier?.Length > 0 ? System.Text.Encoding.UTF8.GetString(passwordCredential.CustomKeyIdentifier) : passwordCredential.KeyId, passwordCredential)
 {
     if (passwordCredential.CustomKeyIdentifier?.Length > 0)
     {
         name = System.Text.Encoding.UTF8.GetString(passwordCredential.CustomKeyIdentifier);
     }
     else
     {
         this.name = passwordCredential.KeyId;
     }
 }