Struct PrivateKeyCredential.Key
Represents a private key.
protected readonly struct PrivateKeyCredential.Key : IDisposable
- Implements
- Inherited Members
Constructors
Key(ReadOnlyMemory<char>, Func<string?>, bool)
Creates a key from raw key data with password prompt.
public Key(ReadOnlyMemory<char> rawKey, Func<string?> passwordPrompt, bool queryKey = true)
Parameters
rawKeyReadOnlyMemory<char>Raw private key data.
passwordPromptFunc<string>Callback to prompt for password.
queryKeyboolWhether to check if the server knows the key before prompting for a decryption password.
Key(ReadOnlyMemory<char>, string?)
Creates a key from raw key data with password.
public Key(ReadOnlyMemory<char> rawKey, string? password = null)
Parameters
rawKeyReadOnlyMemory<char>Raw private key data.
passwordstringPassword for decrypting the key.
Key(ECDsa)
Creates a key from an ECDSA instance.
public Key(ECDsa ecdsa)
Parameters
Key(RSA)
Creates a key from an RSA instance.
public Key(RSA rsa)
Parameters
Methods
Dispose()
Disposes the private key.
public void Dispose()