com.sshtools.j2ssh.agent

Class KeyConstraints


public class KeyConstraints
extends java.lang.Object

Version:
$Revision: 1.12 $
Author:
$author$

Field Summary

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 Summary

KeyConstraints()
Creates a new KeyConstraints object.
KeyConstraints(ByteArrayReader bar)
Creates a new KeyConstraints object.

Method Summary

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()

Field Details

NO_LIMIT

public static final long NO_LIMIT
Field Value:
4294967295L

NO_TIMEOUT

public static final long NO_TIMEOUT
Field Value:
0L

SSH_AGENT_CONSTRAINT_FORWARDING_PATH

protected static final int SSH_AGENT_CONSTRAINT_FORWARDING_PATH
Field Value:
100

SSH_AGENT_CONSTRAINT_FORWARDING_STEPS

protected static final int SSH_AGENT_CONSTRAINT_FORWARDING_STEPS
Field Value:
52

SSH_AGENT_CONSTRAINT_NEED_USER_VERIFICATION

protected static final int SSH_AGENT_CONSTRAINT_NEED_USER_VERIFICATION
Field Value:
151

SSH_AGENT_CONSTRAINT_SSH1_COMPAT

protected static final int SSH_AGENT_CONSTRAINT_SSH1_COMPAT
Field Value:
150

SSH_AGENT_CONSTRAINT_TIMEOUT

protected static final int SSH_AGENT_CONSTRAINT_TIMEOUT
Field Value:
50

SSH_AGENT_CONSTRAINT_USE_LIMIT

protected static final int SSH_AGENT_CONSTRAINT_USE_LIMIT
Field Value:
51

Constructor Details

KeyConstraints

public KeyConstraints()
Creates a new KeyConstraints object.

KeyConstraints

public KeyConstraints(ByteArrayReader bar)
            throws IOException
Creates a new KeyConstraints object.
Parameters:
bar -

Method Details

canUse

public boolean canUse()
Returns:

getForwardingPath

public String getForwardingPath()
Returns:

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:

isSSH1Compatible

public boolean isSSH1Compatible()
Returns:

requiresUserVerification

public boolean requiresUserVerification()
Returns:

setForwardingPath

public void setForwardingPath(String forwardingpath)
Parameters:
forwardingpath -

setKeyTimeout

public void setKeyTimeout(UnsignedInteger32 timeout)
Parameters:
timeout -

setKeyUseLimit

public void setKeyUseLimit(int uselimit)
Parameters:
uselimit -

setMaximumForwardingSteps

public void setMaximumForwardingSteps(int maxsteps)
Parameters:
maxsteps -

setRequiresUserVerification

public void setRequiresUserVerification(boolean userverify)
Parameters:
userverify -

setSSH1Compatible

public void setSSH1Compatible(boolean compat)
Parameters:
compat -

toByteArray

public byte[] toByteArray()
            throws IOException
Returns:

use

public void use()

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.