ibi.broker.scheduler.plugin
Class DefaultSFTPSecurityExit

java.lang.Object
  extended by ibi.broker.scheduler.plugin.DefaultSFTPSecurityExit
All Implemented Interfaces:
SFTPSecurityExit

public class DefaultSFTPSecurityExit
extends java.lang.Object
implements SFTPSecurityExit

A default SFTPSecurityExit implementation to get the public key authentication information from the file sftp_private_key.txt under Distribution Server /cfg directory

In order to use this plug-in, class name ibi.broker.scheduler.plugin.DefaultSFTPSecurityExit must be put into ReportCaster configuration; a JVM system property DSINSTALL must be set and point to the root directory of your Distribution Server.


Constructor Summary
DefaultSFTPSecurityExit()
           
 
Method Summary
 java.lang.String getPassphrase(java.lang.String hostName, java.lang.String userName, java.lang.String scheduleId)
           
 byte[] getSshPrivateFormattedKey(java.lang.String hostName, java.lang.String userName, java.lang.String scheduleId)
           
 boolean isPublicKeyAuthenticationEnabled(java.lang.String hostName, java.lang.String userName, java.lang.String scheduleId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSFTPSecurityExit

public DefaultSFTPSecurityExit()
Method Detail

getPassphrase

public java.lang.String getPassphrase(java.lang.String hostName,
                                      java.lang.String userName,
                                      java.lang.String scheduleId)
Specified by:
getPassphrase in interface SFTPSecurityExit
Returns:
The pass phrase string

getSshPrivateFormattedKey

public byte[] getSshPrivateFormattedKey(java.lang.String hostName,
                                        java.lang.String userName,
                                        java.lang.String scheduleId)
                                 throws java.security.KeyException
Specified by:
getSshPrivateFormattedKey in interface SFTPSecurityExit
Returns:
The key in the format of byte array
Throws:
java.security.KeyException

isPublicKeyAuthenticationEnabled

public boolean isPublicKeyAuthenticationEnabled(java.lang.String hostName,
                                                java.lang.String userName,
                                                java.lang.String scheduleId)
Specified by:
isPublicKeyAuthenticationEnabled in interface SFTPSecurityExit
Returns:
The value of true if public key authentication is enabled, false if not


Copyright © 2006 Information Builders, Incorporated.