Class 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 Detail

      • 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