System.Security namespaces for UWP apps

System.Security namespaces for UWP apps

 

The System.Security its children namespaces (System.Security.Authentication, System.Security.Authentication.ExtendedProtection,System.Security.Claims) contain classes that represent the .NET Framework security system and permissions.

This topic displays the types in the System.Security and System.Security.Principal namespaces that are included in .NET for UWP apps. Note that .NET for UWP apps does not include all the members of each type. For information about individual types, see the linked topics. The documentation for a type indicates which members are included in .NET for UWP apps.

Types supported in .NET for UWP apps

Description

AllowPartiallyTrustedCallersAttribute

Allows an assembly to be called by partially trusted code. Without this declaration, only fully trusted callers are able to use the assembly. This class cannot be inherited.

SecurityCriticalAttribute

Specifies that code or an assembly performs security-critical operations.

SecurityException

The exception that is thrown when a security error is detected.

SecuritySafeCriticalAttribute

Identifies types or members as security-critical and safely accessible by transparent code.

SecurityTransparentAttribute

Specifies that an assembly cannot cause an elevation of privilege.

VerificationException

The exception that is thrown when the security policy requires code to be type safe and the verification process is unable to verify that the code is type safe.

Types supported in the .NET for UWP apps

Description

CipherAlgorithmType

Defines the possible cipher algorithms for the SslStream class.

ExchangeAlgorithmType

Specifies the algorithm used to create keys shared by the client and server.

HashAlgorithmType

Specifies the algorithm used for generating message authentication codes (MACs).

SslProtocols

Defines the possible versions of SslProtocols.

Types supported in the .NET for UWP apps

Description

ChannelBinding

The ChannelBinding class encapsulates a pointer to the opaque data used to bind an authenticated transaction to a secure channel.

ChannelBindingKind

The ChannelBindingKind enumeration represents the kinds of channel bindings that can be queried from secure channels.

Types supported in the .NET for UWP apps

Description

Claim

Represents a claim.

ClaimsIdentity

Represents a claims-based identity.

ClaimsPrincipal

An IPrincipal implementation that supports multiple claims-based identities.

ClaimTypes

Defines constants for the well-known claim types that can be assigned to a subject. This class cannot be inherited.

ClaimValueTypes

Defines claim value types according to the type URIs defined by W3C and OASIS. This class cannot be inherited.

Types supported in the .NET for UWP apps

Description

Aes

Represents the abstract base class from which all implementations of the Advanced Encryption Standard (AES) must inherit.

AsnEncodedData

Represents Abstract Syntax Notation One (ASN.1)-encoded data.

AsymmetricAlgorithm

Represents the abstract base class from which all implementations of asymmetric algorithms must inherit.

CipherMode

Specifies the block cipher mode to use for encryption.

CngAlgorithm

Encapsulates the name of an encryption algorithm.

CngAlgorithmGroup

Encapsulates the name of an encryption algorithm group.

CngExportPolicies

Specifies the key export policies for a key.

CngKey

Defines the core functionality for keys that are used with Cryptography Next Generation (CNG) objects.

CngKeyBlobFormat

Specifies a key BLOB format for use with Microsoft Cryptography Next Generation (CNG) objects.

CngKeyCreationOptions

Specifies options used for key creation.

CngKeyCreationParameters

Contains advanced properties for key creation.

CngKeyHandleOpenOptions

Specifies options for opening key handles.

CngKeyOpenOptions

Specifies options for opening a key.

CngKeyUsages

Specifies the cryptographic operations that a Cryptography Next Generation (CNG) key may be used with.

CngProperty

Encapsulates a property of a Cryptography Next Generation (CNG) key or provider.

CngPropertyCollection

Provides a strongly typed collection of Cryptography Next Generation (CNG) properties.

CngPropertyOptions

Specifies Cryptography Next Generation (CNG) key property options.

CngProvider

Encapsulates the name of a key storage provider (KSP) for use with Cryptography Next Generation (CNG) objects.

CngUIPolicy

Encapsulates optional configuration parameters for the user interface (UI) that Cryptography Next Generation (CNG) displays when you access a protected key.

CngUIProtectionLevels

Specifies the protection level for the key in user interface (UI) prompting scenarios.

CryptographicException

The exception that is thrown when an error occurs during a cryptographic operation.

CryptoStream

Defines a stream that links data streams to cryptographic transformations.

CryptoStreamMode

Specifies the mode of a cryptographic stream.

DeriveBytes

Represents the abstract base class from which all classes that derive byte sequences of a specified length inherit.

HashAlgorithm

Represents the base class from which all implementations of cryptographic hash algorithms must derive.

HashAlgorithmName

Specifies the name of a cryptographic hash algorithm.

HMAC

Represents the abstract class from which all implementations of Hash-based Message Authentication Code (HMAC) must derive.

HMACSHA1

Computes a Hash-based Message Authentication Code (HMAC) using the SHA1 hash function.

HMACSHA256

Computes a Hash-based Message Authentication Code (HMAC) by using the SHA256 hash function.

HMACSHA384

Computes a Hash-based Message Authentication Code (HMAC) using the SHA384 hash function.

HMACSHA512

Computes a Hash-based Message Authentication Code (HMAC) using the SHA512 hash function.

ICryptoTransform

Defines the basic operations of cryptographic transformations.

KeyedHashAlgorithm

Represents the abstract class from which all implementations of keyed hash algorithms must derive.

KeySizes

Determines the set of valid key sizes for the symmetric cryptographic algorithms.

MD5

Represents the abstract class from which all implementations of the MD5 hash algorithm inherit.

Oid

Represents a cryptographic object identifier. This class cannot be inherited.

OidCollection

Represents a collection of Oid objects. This class cannot be inherited.

OidEnumerator

Provides the ability to navigate through an OidCollection object. This class cannot be inherited.

OidGroup

Identifies Windows cryptographic object identifier (OID) groups.

PaddingMode

Specifies the type of padding to apply when the message data block is shorter than the full number of bytes needed for a cryptographic operation.

RandomNumberGenerator

Represents the abstract class from which all implementations of cryptographic random number generators derive.

Rfc2898DeriveBytes

Implements password-based key derivation functionality; PBKDF2; by using a pseudo-random number generator based on HMACSHA1.

RSA

Represents the base class from which all implementations of the RSA algorithm inherit.

RSACng

Provides a Cryptography Next Generation (CNG) implementation of the RSA algorithm.

RSAEncryptionPadding

Specifies the padding mode and parameters to use with RSA encryption or decryption operations.

RSAEncryptionPaddingMode

Specifies the padding mode to use with RSA encryption or decryption operations.

RSAParameters

Represents the standard parameters for the RSA algorithm.

RSASignaturePadding

Specifies the padding mode and parameters to use with RSA signature creation or verification operations.

RSASignaturePaddingMode

Specifies the padding mode to use with RSA signature creation or verification operations.

SHA1

Computes the SHA1 hash for the input data.

SHA256

Computes the SHA256 hash for the input data.

SHA384

Computes the SHA384 hash for the input data.

SHA512

Computes the SHA512 hash for the input data.

SymmetricAlgorithm

Represents the abstract base class from which all implementations of symmetric algorithms must inherit.

Types supported in the .NET for UWP apps

Description

OpenFlags

Specifies the way to open the X.509 certificate store.

PublicKey

Represents a certificate's public key information. This class cannot be inherited.

RSACertificateExtensions

Provides extension methods for retrieving RSA implementations for the public and private keys of an X509Certificate2.

StoreLocation

Specifies the location of the X.509 certificate store.

StoreName

Specifies the name of the X.509 certificate store to open.

X500DistinguishedName

Represents the distinguished name of an X509 certificate. This class cannot be inherited.

X500DistinguishedNameFlags

Specifies characteristics of the X.500 distinguished name.

X509BasicConstraintsExtension

Defines the constraints set on a certificate. This class cannot be inherited.

X509Certificate

Provides methods that help you use X.509 v.3 certificates.

X509Certificate2

Represents an X.509 certificate.

X509Certificate2Collection

Represents a collection of X509Certificate2 objects. This class cannot be inherited.

X509Certificate2Enumerator

Supports a simple iteration over a X509Certificate2Collection object. This class cannot be inherited.

X509CertificateCollection

Defines a collection that stores X509Certificate objects.

X509Chain

Represents a chain-building engine for X509Certificate2 certificates.

X509ChainElement

Represents an element of an X.509 chain.

X509ChainElementCollection

Represents a collection of X509ChainElement objects. This class cannot be inherited.

X509ChainElementEnumerator

Supports a simple iteration over an X509ChainElementCollection. This class cannot be inherited.

X509ChainPolicy

Represents the chain policy to be applied when building an X509 certificate chain. This class cannot be inherited.

X509ChainStatus

Provides a simple structure for storing X509 chain status and error information.

X509ChainStatusFlags

Defines the status of an X509 chain.

X509ContentType

Specifies the format of an X.509 certificate.

X509EnhancedKeyUsageExtension

Defines the collection of object identifiers (OIDs) that indicates the applications that use the key. This class cannot be inherited.

X509Extension

Represents an X509 extension.

X509ExtensionCollection

Represents a collection of X509Extension objects. This class cannot be inherited.

X509ExtensionEnumerator

Supports a simple iteration over a X509ExtensionCollection. This class cannot be inherited.

X509FindType

Specifies the type of value the X509Certificate2Collection.Find method searches for.

X509KeyStorageFlags

Defines where and how to import the private key of an X.509 certificate.

X509KeyUsageExtension

Defines the usage of a key contained within an X.509 certificate. This class cannot be inherited.

X509KeyUsageFlags

Defines how the certificate key can be used. If this value is not defined; the key can be used for any purpose.

X509NameType

Specifies the type of name the X509 certificate contains.

X509RevocationFlag

Specifies which X509 certificates in the chain should be checked for revocation.

X509RevocationMode

Specifies the mode used to check for X509 certificate revocation.

X509Store

Represents an X.509 store; which is a physical store where certificates are persisted and managed. This class cannot be inherited.

X509SubjectKeyIdentifierExtension

Defines a string that identifies a certificate's subject key identifier (SKI). This class cannot be inherited.

X509SubjectKeyIdentifierHashAlgorithm

Defines the type of hash algorithm to use with the X509SubjectKeyIdentifierExtension class.

X509VerificationFlags

Specifies conditions under which verification of certificates in the X509 chain should be conducted.

Types supported in the .NET for UWP apps

Description

GenericIdentity

Represents a generic user.

GenericPrincipal

Represents a generic principal.

IIdentity

Defines the basic functionality of an identity object.

IPrincipal

Defines the basic functionality of a principal object.

TokenImpersonationLevel

Defines security impersonation levels. Security impersonation levels govern the degree to which a server process can act on behalf of a client process.

Show:
© 2017 Microsoft