public abstract class SshAgentKeyConstraint extends Object
SshAgentKeyConstraint
describes usage constraints for keys when being added to an SSH2 agent.Modifier and Type | Class and Description |
---|---|
static class |
SshAgentKeyConstraint.Extension
An OpenSSH
SshAgentKeyConstraint extension. |
static class |
SshAgentKeyConstraint.FidoProviderExtension
The OpenSSH "sk-provider@openssh.com" key constraint extension used for FIDO keys.
|
static class |
SshAgentKeyConstraint.LifeTime
An OpenSSH lifetime constraint expires a key added to an SSH agent after the given number of seconds.
|
Modifier and Type | Field and Description |
---|---|
static SshAgentKeyConstraint |
CONFIRM
The singleton OpenSSH confirmation
SshAgentKeyConstraint . |
Modifier | Constructor and Description |
---|---|
protected |
SshAgentKeyConstraint(byte id)
Constructor setting the agent protocol ID of the constraint.
|
Modifier and Type | Method and Description |
---|---|
byte |
getId()
Retrieves the protocol ID of this constraint.
|
void |
put(Buffer buffer)
Writes this constraint into the given
Buffer . |
public static final SshAgentKeyConstraint CONFIRM
SshAgentKeyConstraint
. If set, the SSH agent is supposed to prompt the
user before each use of a key in a signing operation.
Users who have this option set via ssh config AddKeysToAgent confirm
are responsible themselves for
having configured their agent correctly so that it prompts in whatever way is appropriate.
The OpenSSH agent prompts via via ssh-askpass
or whatever program the environment variable SSH_ASKPASS
defines. These prompts don't go through the prompting callback mechanisms of Apache MINA sshd.
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.