Package org.apache.sshd.agent
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.sshd.agent.SshAgentKeyConstraint
SshAgentKeyConstraint.Extension, SshAgentKeyConstraint.FidoProviderExtension, SshAgentKeyConstraint.LifeTime
-
-
Field Summary
-
Fields inherited from class org.apache.sshd.agent.SshAgentKeyConstraint
CONFIRM
-
-
Constructor Summary
Constructors Constructor Description LifeTime(int secondsToLive)
Creates a newSshAgentKeyConstraint.LifeTime
constraint.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
put(Buffer buffer)
Writes this constraint into the givenBuffer
.-
Methods inherited from class org.apache.sshd.agent.SshAgentKeyConstraint
getId
-
-
-
-
Constructor Detail
-
LifeTime
public LifeTime(int secondsToLive)
Creates a newSshAgentKeyConstraint.LifeTime
constraint.- Parameters:
secondsToLive
- number of seconds after which the agent shall automatically remove the key again; must be strictly positive
-
-
Method Detail
-
put
public void put(Buffer buffer)
Description copied from class:SshAgentKeyConstraint
Writes this constraint into the givenBuffer
.- Overrides:
put
in classSshAgentKeyConstraint
- Parameters:
buffer
-Buffer
to write into at the current buffer write position
-
-