Class CloudFoundryTokenKeyResolver
Inheritance
System.Object
CloudFoundryTokenKeyResolver
Assembly: Steeltoe.Security.Authentication.CloudFoundryBase.dll
Syntax
public class CloudFoundryTokenKeyResolver : object
Constructors
|
Edit this page
View Source
CloudFoundryTokenKeyResolver(String, HttpMessageHandler, Boolean)
Declaration
public CloudFoundryTokenKeyResolver(string jwtKeyUrl, HttpMessageHandler httpHandler, bool validateCertificates)
Parameters
Type |
Name |
Description |
System.String |
jwtKeyUrl |
|
HttpMessageHandler |
httpHandler |
|
System.Boolean |
validateCertificates |
|
|
Edit this page
View Source
CloudFoundryTokenKeyResolver(String, HttpMessageHandler, Boolean, Int32)
Declaration
public CloudFoundryTokenKeyResolver(string jwtKeyUrl, HttpMessageHandler httpHandler, bool validateCertificates, int httpClientTimeoutMS)
Parameters
Type |
Name |
Description |
System.String |
jwtKeyUrl |
|
HttpMessageHandler |
httpHandler |
|
System.Boolean |
validateCertificates |
|
System.Int32 |
httpClientTimeoutMS |
|
Methods
|
Edit this page
View Source
FetchKeySet()
Declaration
public virtual async Task<JsonWebKeySet> FetchKeySet()
Returns
Type |
Description |
Task<JsonWebKeySet> |
|
|
Edit this page
View Source
FixupKey(JsonWebKey)
Declaration
public JsonWebKey FixupKey(JsonWebKey key)
Parameters
Type |
Name |
Description |
JsonWebKey |
key |
|
Returns
Type |
Description |
JsonWebKey |
|
|
Edit this page
View Source
GetHttpClient()
Declaration
public virtual HttpClient GetHttpClient()
Returns
Type |
Description |
HttpClient |
|
|
Edit this page
View Source
GetJsonWebKeySet(String)
Declaration
public virtual JsonWebKeySet GetJsonWebKeySet(string json)
Parameters
Type |
Name |
Description |
System.String |
json |
|
Returns
Type |
Description |
JsonWebKeySet |
|
|
Edit this page
View Source
ResolveSigningKey(String, SecurityToken, String, TokenValidationParameters)
Declaration
public virtual IEnumerable<SecurityKey> ResolveSigningKey(string token, SecurityToken securityToken, string kid, TokenValidationParameters validationParameters)
Parameters
Type |
Name |
Description |
System.String |
token |
|
SecurityToken |
securityToken |
|
System.String |
kid |
|
TokenValidationParameters |
validationParameters |
|
Returns
Type |
Description |
IEnumerable<SecurityKey> |
|