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
FieldsFields inherited from class org.apache.sshd.agent.SshAgentKeyConstraint
CONFIRM -
Constructor Summary
ConstructorsConstructorDescriptionLifeTime(int secondsToLive) Creates a newSshAgentKeyConstraint.LifeTimeconstraint. -
Method Summary
Methods inherited from class org.apache.sshd.agent.SshAgentKeyConstraint
getId
-
Field Details
-
secondsToLive
private final int secondsToLive
-
-
Constructor Details
-
LifeTime
public LifeTime(int secondsToLive) Creates a newSshAgentKeyConstraint.LifeTimeconstraint.- 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:SshAgentKeyConstraintWrites this constraint into the givenBuffer.- Overrides:
putin classSshAgentKeyConstraint- Parameters:
buffer-Bufferto write into at the current buffer write position
-