Show / Hide Table of Contents

Class DefaultContentSecurityPolicyNonceService

Represents the default Content Security Policy nonce service.

Inheritance
Object
DefaultContentSecurityPolicyNonceService
Inherited Members
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: IRM.AspNetCore.Http.Headers
Assembly: IRM.AspNetCore.Mvc.dll
Syntax
public class DefaultContentSecurityPolicyNonceService : IContentSecurityPolicyNonceService

Constructors

DefaultContentSecurityPolicyNonceService(Int32)

Creates a new instance of DefaultContentSecurityPolicyNonceService.

Declaration
public DefaultContentSecurityPolicyNonceService(int size = 16)
Parameters
System.Int32 size

Methods

GetNonce()

Should create a unique nonce value for each request.

Declaration
public string GetNonce()
Returns
String

Implements
IContentSecurityPolicyNonceService.GetNonce()
Back to top Generated by DocFX