Ejemplo n.º 1
0
        internal void SetObjectIdentifier(VaultUriHelper vaultUriHelper, Microsoft.Azure.KeyVault.ObjectIdentifier identifier)
        {
            if (vaultUriHelper == null)
            {
                throw new ArgumentNullException("vaultUriHelper");
            }

            if (identifier == null)
            {
                throw new ArgumentNullException("identifier");
            }

            VaultName = vaultUriHelper.GetVaultName(identifier.Identifier);
            Name      = identifier.Name;
            Version   = identifier.Version;
            Id        = identifier.Identifier;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Verifies whether the identifier belongs to a key vault storage account.
 /// </summary>
 /// <param name="identifier">The key vault storage account identifier.</param>
 /// <returns>True if the identifier belongs to a key vault storage account. False otherwise.</returns>
 public static bool IsStorageAccountIdentifier(string identifier)
 {
     return(ObjectIdentifier.IsObjectIdentifier("storage", identifier));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Verifies whether the identifier is a valid KeyVault deleted certificate identifier.
 /// </summary>
 /// <param name="identifier">The key vault certificate identifier.</param>
 /// <returns>True if the identifier is a valid KeyVault deleted certificate. False otherwise.</returns>
 public static bool IsDeletedCertificateIdentifier(string identifier)
 {
     return(ObjectIdentifier.IsObjectIdentifier("deletedcertificates", identifier));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Verifies whether the identifier belongs to a key vault deleted secret.
 /// </summary>
 /// <param name="identifier">The key vault secret identifier.</param>
 /// <returns>True if the identifier belongs to a key vault deleted secret. False otherwise.</returns>
 public static bool IsDeletedSecretIdentifier(string identifier)
 {
     return(ObjectIdentifier.IsObjectIdentifier("deletedsecrets", identifier));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Verifies whether the identifier belongs to a key vault deleted key.
 /// </summary>
 /// <param name="identifier">The key vault deleted key identifier.</param>
 /// <returns>True if the identifier belongs to a key vault deleted key. False otherwise.</returns>
 public static bool IsDeletedKeyIdentifier(string identifier)
 {
     return(ObjectIdentifier.IsObjectIdentifier("deletedkeys", identifier));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Verifies whether the identifier belongs to a key vault secret.
 /// </summary>
 /// <param name="identifier">The key vault secret identifier.</param>
 /// <returns>True if the identifier belongs to a key vault secret. False otherwise.</returns>
 public static bool IsSecretIdentifier(string identifier)
 {
     return(ObjectIdentifier.IsObjectIdentifier("secrets", identifier));
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Verifies whether the identifier belongs to a key vault key.
 /// </summary>
 /// <param name="identifier">The key vault key identifier.</param>
 /// <returns>True if the identifier belongs to a key vault key. False otherwise.</returns>
 public static bool IsKeyIdentifier(string identifier)
 {
     return(ObjectIdentifier.IsObjectIdentifier("keys", identifier));
 }