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
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
ConstructorDescriptionLifeTime
(int secondsToLive) Creates a newSshAgentKeyConstraint.LifeTime
constraint. -
Method Summary
Methods inherited from class org.apache.sshd.agent.SshAgentKeyConstraint
getId
-
Constructor Details
-
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 Details
-
put
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
-