Share via


IServiceTokenHandler.CreateTokenInfo Method (ClaimsIdentity, ProviderCredentials, TimeSpan, String)

 

Creates a TokenInfo containing a security token to be used as part of the Mobile Service authentication process.

Namespace:   Microsoft.WindowsAzure.Mobile.Service.Security
Assembly:  Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)

Syntax

TokenInfo CreateTokenInfo(
    ClaimsIdentity claimsIdentity,
    ProviderCredentials providerCredentials,
    TimeSpan lifetime,
    string secretKey
)
TokenInfo^ CreateTokenInfo(
    ClaimsIdentity^ claimsIdentity,
    ProviderCredentials^ providerCredentials,
    TimeSpan lifetime,
    String^ secretKey
)
abstract CreateTokenInfo : 
        claimsIdentity:ClaimsIdentity *
        providerCredentials:ProviderCredentials *
        lifetime:TimeSpan *
        secretKey:string -> TokenInfo
Function CreateTokenInfo (
    claimsIdentity As ClaimsIdentity,
    providerCredentials As ProviderCredentials,
    lifetime As TimeSpan,
    secretKey As String
) As TokenInfo

Parameters

  • secretKey
    Type: System.String

    The secret key to sign the token with.

Return Value

Type: Microsoft.WindowsAzure.Mobile.Service.Security.TokenInfo

A TokenInfo containing a security token.

See Also

IServiceTokenHandler Interface
Microsoft.WindowsAzure.Mobile.Service.Security Namespace

Return to top