openr66.context.authentication
Class R66Auth

java.lang.Object
  extended by goldengate.common.file.filesystembased.FilesystemBasedAuthImpl
      extended by openr66.context.authentication.R66Auth
All Implemented Interfaces:
goldengate.common.file.AuthInterface

public class R66Auth
extends goldengate.common.file.filesystembased.FilesystemBasedAuthImpl

Author:
frederic bregier

Field Summary
 
Fields inherited from class goldengate.common.file.filesystembased.FilesystemBasedAuthImpl
isIdentified, password, rootFromAuth, session, user
 
Constructor Summary
R66Auth(R66Session session)
           
 
Method Summary
protected  void businessClean()
           
 boolean connection(goldengate.common.database.DbSession dbSession, String hostId, byte[] arg0)
           
 String getBaseDirectory()
           
static DbHostAuth getServerAuth(goldengate.common.database.DbSession dbSession, String server)
           
 boolean isAdmin()
           
 boolean isBusinessPathValid(String newPath)
           
 boolean isKeyValid(byte[] key)
           
 boolean isSsl()
           
protected  goldengate.common.command.NextCommandReply setBusinessPassword(String arg0)
           
protected  String setBusinessRootFromAuth()
           
protected  goldengate.common.command.NextCommandReply setBusinessUser(String arg0)
           
 void specialNoSessionAuth(boolean isSSL, String hostid)
          Special Authentication for local execution
 String toString()
           
 
Methods inherited from class goldengate.common.file.filesystembased.FilesystemBasedAuthImpl
clear, getAbsolutePath, getBusinessPath, getRelativePath, getSession, getUser, isIdentified, setIsIdentified, setPassword, setUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

R66Auth

public R66Auth(R66Session session)
Parameters:
session -
Method Detail

businessClean

protected void businessClean()
Specified by:
businessClean in class goldengate.common.file.filesystembased.FilesystemBasedAuthImpl

getBaseDirectory

public String getBaseDirectory()

setBusinessPassword

protected goldengate.common.command.NextCommandReply setBusinessPassword(String arg0)
                                                                  throws goldengate.common.command.exception.Reply421Exception,
                                                                         goldengate.common.command.exception.Reply530Exception
Specified by:
setBusinessPassword in class goldengate.common.file.filesystembased.FilesystemBasedAuthImpl
Throws:
goldengate.common.command.exception.Reply421Exception
goldengate.common.command.exception.Reply530Exception

connection

public boolean connection(goldengate.common.database.DbSession dbSession,
                          String hostId,
                          byte[] arg0)
                   throws goldengate.common.command.exception.Reply530Exception,
                          goldengate.common.command.exception.Reply421Exception
Parameters:
dbSession -
hostId -
arg0 -
Returns:
True if the connection is OK (authentication is OK)
Throws:
goldengate.common.command.exception.Reply530Exception - if the authentication is wrong
goldengate.common.command.exception.Reply421Exception - If the service is not available

isKeyValid

public boolean isKeyValid(byte[] key)
Parameters:
key -
Returns:
True if the key is valid for the current user

setBusinessRootFromAuth

protected String setBusinessRootFromAuth()
                                  throws goldengate.common.command.exception.Reply421Exception
Specified by:
setBusinessRootFromAuth in class goldengate.common.file.filesystembased.FilesystemBasedAuthImpl
Throws:
goldengate.common.command.exception.Reply421Exception

setBusinessUser

protected goldengate.common.command.NextCommandReply setBusinessUser(String arg0)
                                                              throws goldengate.common.command.exception.Reply421Exception,
                                                                     goldengate.common.command.exception.Reply530Exception
Specified by:
setBusinessUser in class goldengate.common.file.filesystembased.FilesystemBasedAuthImpl
Throws:
goldengate.common.command.exception.Reply421Exception
goldengate.common.command.exception.Reply530Exception

isAdmin

public boolean isAdmin()

isSsl

public boolean isSsl()
Returns:
True if the associated host is using SSL

isBusinessPathValid

public boolean isBusinessPathValid(String newPath)

toString

public String toString()
Overrides:
toString in class Object

getServerAuth

public static DbHostAuth getServerAuth(goldengate.common.database.DbSession dbSession,
                                       String server)
Parameters:
dbSession -
server -
Returns:
the SimpleAuth if any for this user

specialNoSessionAuth

public void specialNoSessionAuth(boolean isSSL,
                                 String hostid)
Special Authentication for local execution

Parameters:
isSSL -
hostid -


Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.