AddValidationKey(IIdentityServerBuilder, SecurityKeyInfo)
Adds the validation keys.
public static IIdentityServerBuilder AddValidationKey(IIdentityServerBuilder builder, params SecurityKeyInfo keys)
- Returns:
- IIdentityServerBuilder
Parameters
AddValidationKey(IIdentityServerBuilder, RsaSecurityKey, RsaSigningAlgorithm)
Adds an RSA-based validation key.
public static IIdentityServerBuilder AddValidationKey(IIdentityServerBuilder builder, RsaSecurityKey key, RsaSigningAlgorithm signingAlgorithm = 0)
- Returns:
- IIdentityServerBuilder
Parameters
builder
IIdentityServerBuilder
The builder.
key
RsaSecurityKey
The RSA key
signingAlgorithm
RsaSigningAlgorithm
The RSA-based signing algorithm
AddValidationKey(IIdentityServerBuilder, ECDsaSecurityKey, ECDsaSigningAlgorithm)
Adds an ECDSA-based validation key.
public static IIdentityServerBuilder AddValidationKey(IIdentityServerBuilder builder, ECDsaSecurityKey key, ECDsaSigningAlgorithm signingAlgorithm = 0)
- Returns:
- IIdentityServerBuilder
Parameters
builder
IIdentityServerBuilder
The builder.
key
ECDsaSecurityKey
The ECDSA key
signingAlgorithm
ECDsaSigningAlgorithm
The ECDSA-based signing algorithm
AddValidationKey(IIdentityServerBuilder, X509Certificate2, string)
Adds the validation key.
public static IIdentityServerBuilder AddValidationKey(IIdentityServerBuilder builder, X509Certificate2 certificate, string signingAlgorithm = RS256)
- Returns:
- IIdentityServerBuilder
Parameters
builder
IIdentityServerBuilder
The builder.
certificate
X509Certificate2
The certificate.
signingAlgorithm
string
The signing algorithm
AddValidationKey(IIdentityServerBuilder, string, StoreLocation, NameType, string)
Adds the validation key from the certificate store.
public static IIdentityServerBuilder AddValidationKey(IIdentityServerBuilder builder, string name, StoreLocation location = 2, NameType nameType = 0, string signingAlgorithm = RS256)
- Returns:
- IIdentityServerBuilder
Parameters
builder
IIdentityServerBuilder
The builder.
name
string
The name.
location
StoreLocation
The location.
nameType
NameType
Name parameter can be either a distinguished name or a thumbprint
signingAlgorithm
string
The signing algorithm