public class RemoteIdentification
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ADD_AUTHORIZEDKEY |
protected org.apache.commons.logging.Log |
log |
static int |
REMOVE_AUTHORIZEDKEY |
Constructor and Description |
---|
RemoteIdentification(java.lang.String defaultName)
Creates a new RemoteIdentification object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addRule(RemoteIdentificationRule rule) |
boolean |
configureUserAccess(SftpClient sftp,
java.lang.String serverId,
java.lang.String system,
java.lang.String username,
java.util.List keys,
java.lang.String authorizationFile,
int mode) |
boolean |
configureUserAccess(SftpClient sftp,
java.lang.String serverId,
java.lang.String system,
java.lang.String username,
SshPublicKey pk,
java.lang.String authorizationFile,
int mode) |
java.lang.String |
getAuthorizedKeysDefaultPath() |
AuthorizedKeysFormat |
getAuthorizedKeysFormat() |
java.lang.String |
getDefaultName() |
java.lang.String |
getName(java.lang.String ident) |
protected java.util.List |
getRules() |
protected void |
setAuthorizedKeysDefaultPath(java.lang.String defaultPath) |
protected void |
setAuthorizedKeysFormat(java.lang.Class implementationClass) |
protected boolean |
testRules(java.lang.String ident) |
public static final int ADD_AUTHORIZEDKEY
public static final int REMOVE_AUTHORIZEDKEY
protected org.apache.commons.logging.Log log
public RemoteIdentification(java.lang.String defaultName)
defaultName
- protected java.util.List getRules()
public java.lang.String getDefaultName()
public java.lang.String getName(java.lang.String ident) throws RemoteIdentificationException
ident
- RemoteIdentificationException
protected void addRule(RemoteIdentificationRule rule)
rule
- protected boolean testRules(java.lang.String ident)
ident
- protected void setAuthorizedKeysFormat(java.lang.Class implementationClass)
implementationClass
- protected void setAuthorizedKeysDefaultPath(java.lang.String defaultPath)
defaultPath
- public java.lang.String getAuthorizedKeysDefaultPath()
public AuthorizedKeysFormat getAuthorizedKeysFormat() throws RemoteIdentificationException
RemoteIdentificationException
public boolean configureUserAccess(SftpClient sftp, java.lang.String serverId, java.lang.String system, java.lang.String username, SshPublicKey pk, java.lang.String authorizationFile, int mode) throws RemoteIdentificationException
sftp
- serverId
- system
- username
- pk
- authorizationFile
- mode
- RemoteIdentificationException
public boolean configureUserAccess(SftpClient sftp, java.lang.String serverId, java.lang.String system, java.lang.String username, java.util.List keys, java.lang.String authorizationFile, int mode) throws RemoteIdentificationException
sftp
- serverId
- system
- username
- keys
- authorizationFile
- mode
- RemoteIdentificationException
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.