Method | Description | |
---|---|---|
GenerateToken ( string url, string userName, string password, int expiration = null ) : |
Generates a token for the service url.
|
|
ToString ( ) : string |
Returns the token string.
|
|
Token ( Token>.Func |
Initializes a new instance of the Token class based on a delegate function for generating the token from the service url.
|
|
Token ( string token ) : System |
Initializes a new instance of the Token class based on an existing token string.
|
|
Token ( string userName, string password ) : System |
Initializes a new instance of the Token class based on the credentials. When the token is generated this way, it is self-renewing and will not expire.
|
|
Token ( string url, string userName, string password ) : System |
Initializes a new instance of the Token class based on the credentials. When the token is generated this way, it is self-renewing and will not expire.
|
Method | Description | |
---|---|---|
Token ( string token, System.DateTime expiry ) : System |
public static GenerateToken ( string url, string userName, string password, int expiration = null ) : |
||
url | string | |
userName | string | |
password | string | |
expiration | int | |
return |
public Token ( Token>.Func |
||
generateToken | Token>.Func | |
return | System |
public Token ( string token ) : System | ||
token | string | The token string. |
return | System |
public Token ( string userName, string password ) : System | ||
userName | string | |
password | string | |
return | System |
public Token ( string url, string userName, string password ) : System | ||
url | string | |
userName | string | |
password | string | |
return | System |