Constructor Sha512WithRsaVerifier
Sha512WithRsaVerifier(String)
Constructs a new instance using a public key encoded as as base 64 string.
Declaration
public Sha512WithRsaVerifier(string base64PublicKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | base64PublicKey | A string containing the base 64 encoded public key to use for verification. |
Remarks
If the string provided is in the common format using a header an footer to mark the key extent, these headers are removed before the key is parsed, i.e; -----BEGIN PUBLIC KEY----- xxx -----END PUBLIC KEY----- will have the begin/end public key lines removed.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown if |
System.ArgumentException | Thrown if |
Sha512WithRsaVerifier(Byte[])
Constructs a new instance using the raw binary data provided as the public key.
Declaration
public Sha512WithRsaVerifier(byte[] publicKey)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | publicKey | A byte array containing the bytes representing the public key. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown if |
System.ArgumentException | Thrown if |