com.sshtools.common.automate

Class RemoteIdentification


public class RemoteIdentification
extends java.lang.Object

Version:
$Revision: 1.19 $
Author:
$author$

Field Summary

static int
ADD_AUTHORIZEDKEY
static int
REMOVE_AUTHORIZEDKEY
protected Log
log

Constructor Summary

RemoteIdentification(String defaultName)
Creates a new RemoteIdentification object.

Method Summary

protected void
addRule(RemoteIdentificationRule rule)
boolean
configureUserAccess(SftpClient sftp, String serverId, String system, String username, List keys, String authorizationFile, int mode)
boolean
configureUserAccess(SftpClient sftp, String serverId, String system, String username, SshPublicKey pk, String authorizationFile, int mode)
String
getAuthorizedKeysDefaultPath()
AuthorizedKeysFormat
getAuthorizedKeysFormat()
String
getDefaultName()
String
getName(String ident)
protected List
getRules()
protected void
setAuthorizedKeysDefaultPath(String defaultPath)
protected void
setAuthorizedKeysFormat(Class implementationClass)
protected boolean
testRules(String ident)

Field Details

ADD_AUTHORIZEDKEY

public static final int ADD_AUTHORIZEDKEY
Field Value:
1

REMOVE_AUTHORIZEDKEY

public static final int REMOVE_AUTHORIZEDKEY
Field Value:
2

log

protected Log log

Constructor Details

RemoteIdentification

public RemoteIdentification(String defaultName)
Creates a new RemoteIdentification object.
Parameters:
defaultName -

Method Details

addRule

protected void addRule(RemoteIdentificationRule rule)
Parameters:
rule -

configureUserAccess

public boolean configureUserAccess(SftpClient sftp,
                                   String serverId,
                                   String system,
                                   String username,
                                   List keys,
                                   String authorizationFile,
                                   int mode)
            throws RemoteIdentificationException
Parameters:
sftp -
serverId -
system -
username -
keys -
authorizationFile -
mode -
Returns:

configureUserAccess

public boolean configureUserAccess(SftpClient sftp,
                                   String serverId,
                                   String system,
                                   String username,
                                   SshPublicKey pk,
                                   String authorizationFile,
                                   int mode)
            throws RemoteIdentificationException
Parameters:
sftp -
serverId -
system -
username -
pk -
authorizationFile -
mode -
Returns:

getAuthorizedKeysDefaultPath

public String getAuthorizedKeysDefaultPath()
Returns:

getAuthorizedKeysFormat

public AuthorizedKeysFormat getAuthorizedKeysFormat()
            throws RemoteIdentificationException
Returns:

getDefaultName

public String getDefaultName()
Returns:

getName

public String getName(String ident)
            throws RemoteIdentificationException
Parameters:
ident -
Returns:

getRules

protected List getRules()
Returns:

setAuthorizedKeysDefaultPath

protected void setAuthorizedKeysDefaultPath(String defaultPath)
Parameters:
defaultPath -

setAuthorizedKeysFormat

protected void setAuthorizedKeysFormat(Class implementationClass)
Parameters:
implementationClass -

testRules

protected boolean testRules(String ident)
Parameters:
ident -
Returns:

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