KeyContainerPermissionFlags Enumeração
Definição
Cuidado
Code Access Security is not supported or honored by the runtime.
Especifica o tipo de acesso do contêiner de chave permitido.Specifies the type of key container access allowed.
Esta enumeração tem um atributo FlagsAttribute que permite uma combinação bit a bit dos valores membros dela.
public enum class KeyContainerPermissionFlags
public enum KeyContainerPermissionFlags
[System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public enum KeyContainerPermissionFlags
[System.Flags]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public enum KeyContainerPermissionFlags
type KeyContainerPermissionFlags =
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type KeyContainerPermissionFlags =
[<System.Flags>]
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type KeyContainerPermissionFlags =
Public Enum KeyContainerPermissionFlags
- Herança
- Atributos
Campos
AllFlags | 13111 | Crie, descriptografe, exclua e abra um contêiner de chave; exporte e importe uma chave; assine arquivos usando uma chave e exiba e altere a lista de controle de acesso de um contêiner de chave.Create, decrypt, delete, and open a key container; export and import a key; sign files using a key; and view and change the access control list for a key container. |
ChangeAcl | 8192 | Altere a ACL (lista de controle de acesso) de um contêiner de chave.Change the access control list (ACL) for a key container. |
Create | 1 | Crie um contêiner de chave.Create a key container. A criação de um contêiner de chave também cria um arquivo no disco.Creating a key container also creates a file on disk. É muito importante que qualquer contêiner de chave criado seja removido quando não estiver mais em uso.It is very important that any key container that is created is removed when it is no longer in use. |
Decrypt | 512 | Descriptografe um contêiner de chave.Decrypt a key container. A descriptografia é uma operação privilegiada porque utiliza a chave privada.Decryption is a privileged operation because it uses the private key. |
Delete | 4 | Exclua um contêiner de chave.Delete a key container. A exclusão de um contêiner de chave pode constituir um ataque de negação de serviço porque impede o uso de arquivos criptografados ou assinados com a chave.Deleting a key container can constitute a denial of service attack because it prevents the use of files encrypted or signed with the key. Portanto, a exclusão é uma operação privilegiada.Therefore, deletion is a privileged operation. |
Export | 32 | Exporte uma chave de um contêiner de chave.Export a key from a key container. A capacidade de exportar uma chave é potencialmente prejudicial porque remove a exclusividade da chave.The ability to export a key is potentially harmful because it removes the exclusivity of the key. |
Import | 16 | Importe uma chave para um contêiner de chave.Import a key into a key container. A capacidade de importar uma chave pode ser tão prejudicial quanto a capacidade de excluir um contêiner porque importar uma chave para um contêiner de chave denominado substitui a chave existente.The ability to import a key can be as harmful as the ability to delete a container because importing a key into a named key container replaces the existing key.
|
NoFlags | 0 | Nenhum acesso a um contêiner de chave.No access to a key container. |
Open | 2 | Abra um contêiner de chave e use a chave pública.Open a key container and use the public key.
|
Sign | 256 | Assina um arquivo usando uma chave.Sign a file using a key. A capacidade de assinar um arquivo é potencialmente prejudicial porque pode permitir que um usuário assine um arquivo usando a chave de outro usuário.The ability to sign a file is potentially harmful because it can allow a user to sign a file using another user's key. |
ViewAcl | 4096 | Exiba a ACL (lista de controle de acesso) de um contêiner de chave.View the access control list (ACL) for a key container. |
Exemplos
O exemplo a seguir mostra o uso da KeyContainerPermissionFlags
enumeração.The following example shows the use of the KeyContainerPermissionFlags
enumeration.
// Create a KeyContainerPermission with the right to open the key container.
KeyContainerPermission ^ keyContainerPerm = gcnew KeyContainerPermission( KeyContainerPermissionFlags::Open );
// Create a KeyContainerPermission with the right
// to open the key container.
KeyContainerPermission keyContainerPerm = new
KeyContainerPermission(KeyContainerPermissionFlags.Open);
' Create a KeyContainerPermission with the right to open the key container.
Dim keyContainerPerm As New KeyContainerPermission(KeyContainerPermissionFlags.Open)
Comentários
Essa enumeração é usada por membros da KeyContainerPermissionAccessEntry classe.This enumeration is used by members of the KeyContainerPermissionAccessEntry class.
Cuidado
Muitos desses sinalizadores podem ter efeitos poderosos e devem ser concedidos somente a códigos altamente confiáveis.Many of these flags can have powerful effects and should be granted only to highly trusted code.
Os sinalizadores mais poderosos são Create
,,,,, Delete
Import
Export
Sign
Decrypt
e AllFlags
.The most powerful flags are Create
, Delete
, Import
, Export
, Sign
, Decrypt
, and AllFlags
. Para ameaças específicas que o uso desses sinalizadores podem apresentar, consulte as descrições de membro.For specific threats that the use of these flags can present, see the member descriptions.