AppBuilderExtensions.CreateDataProtector Method (IAppBuilder, String[])


Creates a data protector.

Namespace:   Microsoft.Owin.Security.DataProtection
Assembly:  Microsoft.Owin.Security (in Microsoft.Owin.Security.dll)


public static IDataProtector CreateDataProtector(
    this IAppBuilder app,
    params string[] purposes
static IDataProtector^ CreateDataProtector(
    IAppBuilder^ app,
    ... array<String^>^ purposes
static member CreateDataProtector : 
        app:IAppBuilder *
        [<ParamArrayAttribute>] purposes:string[] -> IDataProtector
Public Shared Function CreateDataProtector (
    app As IAppBuilder,
    ParamArray purposes As String()
) As IDataProtector


  • app
    Type: Owin.IAppBuilder

    The application builder.

  • purposes
    Type: System.String[]

    A list of purposes for creating the data protector.

Return Value

Type: Microsoft.Owin.Security.DataProtection.IDataProtector

The created IDataProtector.

See Also

AppBuilderExtensions Class
Microsoft.Owin.Security.DataProtection Namespace

Return to top