C# Class IdentityServer3.Contrib.AzureKeyVaultTokenSigningService.AzureKeyVaultTokenSigningService

Inheritance: ITokenSigningService
Mostra file Open project: MattCotterellNZ/IdentityServer.Contrib.AzureKeyVaultTokenSigningService

Public Methods

Method Description
AzureKeyVaultTokenSigningService ( IPublicKeyProvider publicKeyProvider, IOptions options ) : System

Initializes a new instance of the AzureKeyVaultTokenSigningService class.

SignTokenAsync ( Token token ) : Task

Signs the token.

Protected Methods

Method Description
CreateHeader ( IdentityServer3.Core.Models.Token token, AzureKeyVaultSigningCredentials keyVaultCredentials ) : JwtHeader

Creates the JWT header

CreateJsonWebToken ( IdentityServer3.Core.Models.Token token, AzureKeyVaultSigningCredentials credentials ) : Task

Creates the json web token.

CreatePayload ( IdentityServer3.Core.Models.Token token ) : JwtPayload

Creates the JWT payload

GetSigningCredentialsAsync ( ) : Task

Retrieves the signing credential (override to load key from alternative locations)

SignAsync ( JwtSecurityToken jwt ) : Task

Applies the signature to the JWT

Private Methods

Method Description
FromBase64Url ( string base64Url ) : byte[]

Method Details

AzureKeyVaultTokenSigningService() public method

Initializes a new instance of the AzureKeyVaultTokenSigningService class.
public AzureKeyVaultTokenSigningService ( IPublicKeyProvider publicKeyProvider, IOptions options ) : System
publicKeyProvider IPublicKeyProvider The public key provider.
options IOptions The options.
return System

CreateHeader() protected method

Creates the JWT header
protected CreateHeader ( IdentityServer3.Core.Models.Token token, AzureKeyVaultSigningCredentials keyVaultCredentials ) : JwtHeader
token IdentityServer3.Core.Models.Token The token.
keyVaultCredentials AzureKeyVaultSigningCredentials The credentials.
return JwtHeader

CreateJsonWebToken() protected method

Creates the json web token.
protected CreateJsonWebToken ( IdentityServer3.Core.Models.Token token, AzureKeyVaultSigningCredentials credentials ) : Task
token IdentityServer3.Core.Models.Token The token.
credentials AzureKeyVaultSigningCredentials The credentials.
return Task

CreatePayload() protected method

Creates the JWT payload
protected CreatePayload ( IdentityServer3.Core.Models.Token token ) : JwtPayload
token IdentityServer3.Core.Models.Token The token.
return JwtPayload

GetSigningCredentialsAsync() protected method

Retrieves the signing credential (override to load key from alternative locations)
protected GetSigningCredentialsAsync ( ) : Task
return Task

SignAsync() protected method

Applies the signature to the JWT
protected SignAsync ( JwtSecurityToken jwt ) : Task
jwt JwtSecurityToken The JWT object.
return Task

SignTokenAsync() public method

Signs the token.
public SignTokenAsync ( Token token ) : Task
token Token The token.
return Task