C# Class IdentityServer4.Contrib.AzureKeyVaultTokenSigningService.AzureKeyVaultTokenSigningService

Inheritance: ITokenSigningService
显示文件 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 ( IdentityServer4.Core.Models.Token token ) : Task

Signs the token.

Protected Methods

Method Description
CreateHeaderAsync ( IdentityServer4.Core.Models.Token token, AzureKeyVaultSigningCredentials keyVaultCredentials ) : Task

Creates the JWT header

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

Creates the json web token.

CreatePayloadAsync ( IdentityServer4.Core.Models.Token token ) : Task

Creates the JWT payload

GetSigningCredentialsAsync ( ) : Task

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

SignAsync ( System.IdentityModel.Tokens.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

CreateHeaderAsync() protected method

Creates the JWT header
protected CreateHeaderAsync ( IdentityServer4.Core.Models.Token token, AzureKeyVaultSigningCredentials keyVaultCredentials ) : Task
token IdentityServer4.Core.Models.Token The token.
keyVaultCredentials AzureKeyVaultSigningCredentials The credentials.
return Task

CreateJsonWebToken() protected method

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

CreatePayloadAsync() protected method

Creates the JWT payload
protected CreatePayloadAsync ( IdentityServer4.Core.Models.Token token ) : Task
token IdentityServer4.Core.Models.Token The token.
return Task

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 ( System.IdentityModel.Tokens.JwtSecurityToken jwt ) : Task
jwt System.IdentityModel.Tokens.JwtSecurityToken The JWT object.
return Task

SignTokenAsync() public method

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