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
claimsIdentity
Type: System.Security.Claims.ClaimsIdentityThe set of claims to include in the token.
providerCredentials
Type: Microsoft.WindowsAzure.Mobile.Service.Security.ProviderCredentialsThe ProviderCredentials to include as part of the token.
lifetime
Type: System.TimeSpanA TimeSpan indicating how long the token is valid for.
secretKey
Type: System.StringThe 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