![]() |
In production, the callback should obtain an application key or other required PASSWORD from a secure source.
|
Function
|
Description
|
---|---|
public getClaims()
|
Returns the Dictionary<string,object> that holds the security claims.
|
public static fromAppKeyCallback(TwPasswordDelegate appKeyCallback)
|
Creates and returns a new SecurityClaims object based on a TwPasswordDelegate appKeyCallback function.
|
public static fromPasswordCallback(TwPasswordDelegate passwordCallback)
|
Creates and returns a new SecurityClaims object based on the TwPasswordDelegate passwordCallback function.
|
public static fromCredentials(string uid, TwPasswordDelegate pwdCallback)
|
Creates and returns a new SecurityClaims object with two dictionary entries – one for the user ID and one for the password.
|
public static addSecurityClaim(string name, object value)
|
Creates and returns a new SecurityClaims object with a dictionary entry of key name and value value. Not recommended for development
|
public bool hasClaims()
|
Returns true if the claims dictionary has entries
|