Package org.apache.sshd.agent
Class SshAgentKeyConstraint
- java.lang.Object
-
- org.apache.sshd.agent.SshAgentKeyConstraint
-
- Direct Known Subclasses:
SshAgentKeyConstraint.Extension,SshAgentKeyConstraint.LifeTime
public abstract class SshAgentKeyConstraint extends Object
ASshAgentKeyConstraintdescribes usage constraints for keys when being added to an SSH2 agent.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSshAgentKeyConstraint.ExtensionAn OpenSSHSshAgentKeyConstraintextension.static classSshAgentKeyConstraint.FidoProviderExtensionThe OpenSSH "sk-provider@openssh.com" key constraint extension used for FIDO keys.static classSshAgentKeyConstraint.LifeTimeAn OpenSSH lifetime constraint expires a key added to an SSH agent after the given number of seconds.
-
Field Summary
Fields Modifier and Type Field Description static SshAgentKeyConstraintCONFIRMThe singleton OpenSSH confirmationSshAgentKeyConstraint.
-
Constructor Summary
Constructors Modifier Constructor Description protectedSshAgentKeyConstraint(byte id)Constructor setting the agent protocol ID of the constraint.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetId()Retrieves the protocol ID of this constraint.voidput(Buffer buffer)Writes this constraint into the givenBuffer.
-
-
-
Field Detail
-
CONFIRM
public static final SshAgentKeyConstraint CONFIRM
The singleton OpenSSH confirmationSshAgentKeyConstraint. 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 confirmare responsible themselves for having configured their agent correctly so that it prompts in whatever way is appropriate.The OpenSSH agent prompts via via
ssh-askpassor whatever program the environment variable SSH_ASKPASS defines. These prompts don't go through the prompting callback mechanisms of Apache MINA sshd.
-
-