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 int
protected org.apache.commons.logging.Log
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteIdentification
(String defaultName) Creates a new RemoteIdentification object. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
boolean
configureUserAccess
(SftpClient sftp, String serverId, String system, String username, SshPublicKey pk, String authorizationFile, int mode) boolean
configureUserAccess
(SftpClient sftp, String serverId, String system, String username, List keys, String authorizationFile, int mode) protected List
getRules()
protected void
setAuthorizedKeysDefaultPath
(String defaultPath) protected void
setAuthorizedKeysFormat
(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
-