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

    • put

      public void put(org.apache.sshd.common.util.buffer.Buffer buffer)
      Description copied from class: SshAgentKeyConstraint
      Writes this constraint into the given Buffer.
      Overrides:
      put in class SshAgentKeyConstraint
      Parameters:
      buffer - Buffer to write into at the current buffer write position