Package com.sshtools.common.automate
Class RemoteIdentification
java.lang.Object
com.sshtools.common.automate.RemoteIdentification
- Version:
- $Revision: 1.19 $
- Author:
- $author$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprotected org.apache.commons.logging.Logstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionRemoteIdentification(String defaultName) Creates a new RemoteIdentification object. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleanconfigureUserAccess(SftpClient sftp, String serverId, String system, String username, SshPublicKey pk, String authorizationFile, int mode) booleanconfigureUserAccess(SftpClient sftp, String serverId, String system, String username, List keys, String authorizationFile, int mode) protected ListgetRules()protected voidsetAuthorizedKeysDefaultPath(String defaultPath) protected voidsetAuthorizedKeysFormat(Class implementationClass) protected boolean
-
Field Details
-
ADD_AUTHORIZEDKEY
public static final int ADD_AUTHORIZEDKEY- See Also:
-
REMOVE_AUTHORIZEDKEY
public static final int REMOVE_AUTHORIZEDKEY- See Also:
-
log
protected org.apache.commons.logging.Log log
-
-
Constructor Details
-
RemoteIdentification
Creates a new RemoteIdentification object.- Parameters:
defaultName-
-
-
Method Details
-
getRules
- Returns:
-
getDefaultName
- Returns:
-
getName
- Parameters:
ident-- Returns:
- Throws:
RemoteIdentificationException
-
addRule
- Parameters:
rule-
-
testRules
- Parameters:
ident-- Returns:
-
setAuthorizedKeysFormat
- Parameters:
implementationClass-
-
setAuthorizedKeysDefaultPath
- Parameters:
defaultPath-
-
getAuthorizedKeysDefaultPath
- Returns:
-
getAuthorizedKeysFormat
- Returns:
- Throws:
RemoteIdentificationException
-
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:
- Throws:
RemoteIdentificationException
-
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:
- Throws:
RemoteIdentificationException
-