public class KeyConstraints extends Object
Modifier and Type | Field and Description |
---|---|
static long |
NO_LIMIT |
static long |
NO_TIMEOUT |
protected static int |
SSH_AGENT_CONSTRAINT_FORWARDING_PATH |
protected static int |
SSH_AGENT_CONSTRAINT_FORWARDING_STEPS |
protected static int |
SSH_AGENT_CONSTRAINT_NEED_USER_VERIFICATION |
protected static int |
SSH_AGENT_CONSTRAINT_SSH1_COMPAT |
protected static int |
SSH_AGENT_CONSTRAINT_TIMEOUT |
protected static int |
SSH_AGENT_CONSTRAINT_USE_LIMIT |
Constructor and Description |
---|
KeyConstraints()
Creates a new KeyConstraints object.
|
KeyConstraints(ByteArrayReader bar)
Creates a new KeyConstraints object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canUse() |
String |
getForwardingPath() |
long |
getKeyTimeout() |
long |
getKeyUseLimit() |
long |
getMaximumForwardingSteps() |
long |
getUsedCount() |
boolean |
hasTimedOut() |
boolean |
isSSH1Compatible() |
boolean |
requiresUserVerification() |
void |
setForwardingPath(String forwardingpath) |
void |
setKeyTimeout(UnsignedInteger32 timeout) |
void |
setKeyUseLimit(int uselimit) |
void |
setMaximumForwardingSteps(int maxsteps) |
void |
setRequiresUserVerification(boolean userverify) |
void |
setSSH1Compatible(boolean compat) |
byte[] |
toByteArray() |
void |
use() |
public static final long NO_TIMEOUT
public static final long NO_LIMIT
protected static final int SSH_AGENT_CONSTRAINT_TIMEOUT
protected static final int SSH_AGENT_CONSTRAINT_USE_LIMIT
protected static final int SSH_AGENT_CONSTRAINT_FORWARDING_STEPS
protected static final int SSH_AGENT_CONSTRAINT_FORWARDING_PATH
protected static final int SSH_AGENT_CONSTRAINT_SSH1_COMPAT
protected static final int SSH_AGENT_CONSTRAINT_NEED_USER_VERIFICATION
public KeyConstraints()
public KeyConstraints(ByteArrayReader bar) throws IOException
bar
- IOException
public void setKeyTimeout(UnsignedInteger32 timeout)
timeout
- public void setKeyUseLimit(int uselimit)
uselimit
- public void setMaximumForwardingSteps(int maxsteps)
maxsteps
- public void setForwardingPath(String forwardingpath)
forwardingpath
- public void setRequiresUserVerification(boolean userverify)
userverify
- public void setSSH1Compatible(boolean compat)
compat
- public long getKeyTimeout()
public long getKeyUseLimit()
public long getMaximumForwardingSteps()
public long getUsedCount()
public boolean hasTimedOut()
public boolean canUse()
public void use()
public String getForwardingPath()
public boolean requiresUserVerification()
public boolean isSSH1Compatible()
public byte[] toByteArray() throws IOException
IOException
Copyright © 2024. All rights reserved.