Class SshAgentKeyConstraint.LifeTime

java.lang.Object
org.apache.sshd.agent.SshAgentKeyConstraint
org.apache.sshd.agent.SshAgentKeyConstraint.LifeTime
Enclosing class:
SshAgentKeyConstraint

public static class SshAgentKeyConstraint.LifeTime extends SshAgentKeyConstraint
An OpenSSH lifetime constraint expires a key added to an SSH agent after the given number of seconds.
  • Constructor Details

    • LifeTime

      public LifeTime(int secondsToLive)
      Creates a new SshAgentKeyConstraint.LifeTime constraint.
      Parameters:
      secondsToLive - number of seconds after which the agent shall automatically remove the key again; must be strictly positive
  • Method Details