Package com.sshtools.j2ssh.agent
Class KeyConstraints
java.lang.Object
com.sshtools.j2ssh.agent.KeyConstraints
- Version:
- $Revision: 1.12 $
- Author:
- $author$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final longprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final int -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new KeyConstraints object.Creates a new KeyConstraints object. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUse()longlonglonglongbooleanbooleanbooleanvoidsetForwardingPath(String forwardingpath) voidsetKeyTimeout(UnsignedInteger32 timeout) voidsetKeyUseLimit(int uselimit) voidsetMaximumForwardingSteps(int maxsteps) voidsetRequiresUserVerification(boolean userverify) voidsetSSH1Compatible(boolean compat) byte[]voiduse()
-
Field Details
-
NO_TIMEOUT
public static final long NO_TIMEOUT- See Also:
-
NO_LIMIT
public static final long NO_LIMIT- See Also:
-
SSH_AGENT_CONSTRAINT_TIMEOUT
protected static final int SSH_AGENT_CONSTRAINT_TIMEOUT- See Also:
-
SSH_AGENT_CONSTRAINT_USE_LIMIT
protected static final int SSH_AGENT_CONSTRAINT_USE_LIMIT- See Also:
-
SSH_AGENT_CONSTRAINT_FORWARDING_STEPS
protected static final int SSH_AGENT_CONSTRAINT_FORWARDING_STEPS- See Also:
-
SSH_AGENT_CONSTRAINT_FORWARDING_PATH
protected static final int SSH_AGENT_CONSTRAINT_FORWARDING_PATH- See Also:
-
SSH_AGENT_CONSTRAINT_SSH1_COMPAT
protected static final int SSH_AGENT_CONSTRAINT_SSH1_COMPAT- See Also:
-
SSH_AGENT_CONSTRAINT_NEED_USER_VERIFICATION
protected static final int SSH_AGENT_CONSTRAINT_NEED_USER_VERIFICATION- See Also:
-
-
Constructor Details
-
KeyConstraints
public KeyConstraints()Creates a new KeyConstraints object. -
KeyConstraints
Creates a new KeyConstraints object.- Parameters:
bar-- Throws:
IOException
-
-
Method Details
-
setKeyTimeout
- Parameters:
timeout-
-
setKeyUseLimit
public void setKeyUseLimit(int uselimit) - Parameters:
uselimit-
-
setMaximumForwardingSteps
public void setMaximumForwardingSteps(int maxsteps) - Parameters:
maxsteps-
-
setForwardingPath
- Parameters:
forwardingpath-
-
setRequiresUserVerification
public void setRequiresUserVerification(boolean userverify) - Parameters:
userverify-
-
setSSH1Compatible
public void setSSH1Compatible(boolean compat) - Parameters:
compat-
-
getKeyTimeout
public long getKeyTimeout()- Returns:
-
getKeyUseLimit
public long getKeyUseLimit()- Returns:
-
getMaximumForwardingSteps
public long getMaximumForwardingSteps()- Returns:
-
getUsedCount
public long getUsedCount()- Returns:
-
hasTimedOut
public boolean hasTimedOut()- Returns:
-
canUse
public boolean canUse()- Returns:
-
use
public void use() -
getForwardingPath
- Returns:
-
requiresUserVerification
public boolean requiresUserVerification()- Returns:
-
isSSH1Compatible
public boolean isSSH1Compatible()- Returns:
-
toByteArray
- Returns:
- Throws:
IOException
-