openr66.context.authentication
Class R66Auth
java.lang.Object
goldengate.common.file.filesystembased.FilesystemBasedAuthImpl
openr66.context.authentication.R66Auth
- All Implemented Interfaces:
- goldengate.common.file.AuthInterface
public class R66Auth
- extends goldengate.common.file.filesystembased.FilesystemBasedAuthImpl
- Author:
- frederic bregier
| Fields inherited from class goldengate.common.file.filesystembased.FilesystemBasedAuthImpl |
isIdentified, password, rootFromAuth, session, user |
| Methods inherited from class goldengate.common.file.filesystembased.FilesystemBasedAuthImpl |
clear, getAbsolutePath, getBusinessPath, getRelativePath, getSession, getUser, isIdentified, setIsIdentified, setPassword, setUser |
R66Auth
public R66Auth(R66Session session)
- Parameters:
session -
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.