Class GovernanceVerificationKey
- Namespace
- AsiBackbone.Signing.ManagedKey
- Assembly
- AsiBackbone.Signing.ManagedKey.dll
Represents one trusted public verification-key version.
public sealed class GovernanceVerificationKey
- Inheritance
-
GovernanceVerificationKey
- Inherited Members
Properties
IsRevoked
Gets a value indicating whether this version is revoked.
public bool IsRevoked { get; }
Property Value
KeyId
Gets the stable key identifier.
public string KeyId { get; }
Property Value
KeyVersion
Gets the stable key version.
public string KeyVersion { get; }
Property Value
SignatureAlgorithm
Gets the required signature algorithm descriptor.
public string SignatureAlgorithm { get; }
Property Value
Methods
FromJwk(string, string, string, string, bool, int)
Creates a trusted key from an RSA or EC public JWK.
public static GovernanceVerificationKey FromJwk(string keyId, string keyVersion, string signatureAlgorithm, string publicJwk, bool isRevoked = false, int minimumRsaKeySize = 2048)
Parameters
keyIdstringkeyVersionstringsignatureAlgorithmstringpublicJwkstringisRevokedboolminimumRsaKeySizeint
Returns
FromPem(string, string, string, string, bool, int)
Creates a trusted key from an SPKI public-key PEM.
public static GovernanceVerificationKey FromPem(string keyId, string keyVersion, string signatureAlgorithm, string publicKeyPem, bool isRevoked = false, int minimumRsaKeySize = 2048)
Parameters
keyIdstringkeyVersionstringsignatureAlgorithmstringpublicKeyPemstringisRevokedboolminimumRsaKeySizeint