Class CloudFoundryHelper
Inheritance
System.Object
CloudFoundryHelper
Assembly: Steeltoe.Security.Authentication.CloudFoundryBase.dll
Syntax
public static class CloudFoundryHelper : object
Methods
|
Edit this page
View Source
GetBackChannelHandler(Boolean)
Declaration
public static HttpMessageHandler GetBackChannelHandler(bool validateCertificates)
Parameters
Type |
Name |
Description |
System.Boolean |
validateCertificates |
|
Returns
Type |
Description |
HttpMessageHandler |
|
|
Edit this page
View Source
GetExpTime(JsonElement)
Retrieves expiration time property (exp) in a
Declaration
public static DateTime GetExpTime(JsonElement payload)
Parameters
Type |
Name |
Description |
JsonElement |
payload |
Contents of a JWT
|
Returns
Type |
Description |
DateTime |
The representation of a token's expiration
|
|
Edit this page
View Source
GetIssueTime(JsonElement)
Retrieves the time at which a token was issued
Declaration
public static DateTime GetIssueTime(JsonElement payload)
Parameters
Type |
Name |
Description |
JsonElement |
payload |
Contents of a JWT
|
Returns
Type |
Description |
DateTime |
The representation of a token's issued-at time
|
|
Edit this page
View Source
GetScopes(JsonElement)
Declaration
public static List<string> GetScopes(JsonElement user)
Parameters
Type |
Name |
Description |
JsonElement |
user |
|
Returns
Type |
Description |
List<System.String> |
|
|
Edit this page
View Source
GetTokenValidationParameters(TokenValidationParameters, String, HttpMessageHandler, Boolean, AuthServerOptions)
Declaration
public static TokenValidationParameters GetTokenValidationParameters(TokenValidationParameters parameters, string keyUrl, HttpMessageHandler handler, bool validateCertificates, AuthServerOptions options = null)
Parameters
Type |
Name |
Description |
TokenValidationParameters |
parameters |
|
System.String |
keyUrl |
|
HttpMessageHandler |
handler |
|
System.Boolean |
validateCertificates |
|
AuthServerOptions |
options |
|
Returns
Type |
Description |
TokenValidationParameters |
|