goldengate.uip
Class GgPassword

java.lang.Object
  extended by goldengate.uip.GgPassword

public class GgPassword
extends Object

Console Command Line Main class to provide Password Management for GoldenGate Products.

Author:
Frederic Bregier

Field Summary
static boolean clearPasswordView
           
static String cpwd
           
static boolean desModel
           
static String GGPEXTENSION
           
static String HELPOPTIONS
           
static String ki
           
static String ko
           
static String pi
           
static String po
           
static String pwd
           
 
Constructor Summary
GgPassword()
           
 
Method Summary
 void createNewKey()
          Create a new Key but do not save it on file
 String getClearPassword()
           
 String getCryptedPassword()
           
 File getKeyFile()
           
 File getPasswordFile()
           
 boolean keyReady()
           
 void loadKey(File file)
           
static boolean loadOptions(String[] args)
           
 void loadPasswordFile()
          Load the crypted password from the file
static void main(String[] args)
           
 void saveKey(File file)
           
 void savePasswordFile()
          Save the Crypted Paswword to the File
 void setClearPassword(String passwd)
          Set the new password and its crypted value
 void setCryptedPassword(String cryptedPassword)
           
 void setPasswordFile(File passwordFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

desModel

public static boolean desModel

clearPasswordView

public static boolean clearPasswordView

HELPOPTIONS

public static String HELPOPTIONS

GGPEXTENSION

public static String GGPEXTENSION

ki

public static String ki

ko

public static String ko

pi

public static String pi

po

public static String po

pwd

public static String pwd

cpwd

public static String cpwd
Constructor Detail

GgPassword

public GgPassword()
           throws Exception
Throws:
Exception
Method Detail

main

public static void main(String[] args)
                 throws Exception
Parameters:
args -
Throws:
Exception

loadOptions

public static boolean loadOptions(String[] args)

createNewKey

public void createNewKey()
                  throws Exception
Create a new Key but do not save it on file

Throws:
Exception

loadKey

public void loadKey(File file)
             throws goldengate.common.exception.CryptoException
Parameters:
file - source file
Throws:
goldengate.common.exception.CryptoException

saveKey

public void saveKey(File file)
             throws goldengate.common.exception.CryptoException
Parameters:
file - destination file, if null previously set file is used
Throws:
goldengate.common.exception.CryptoException

keyReady

public boolean keyReady()
Returns:
True if the associated key is ready

getKeyFile

public File getKeyFile()
Returns:
The File associated with the current Key

setClearPassword

public void setClearPassword(String passwd)
                      throws Exception
Set the new password and its crypted value

Parameters:
passwd -
Throws:
Exception

getPasswordFile

public File getPasswordFile()
Returns:
the passwordFile

setPasswordFile

public void setPasswordFile(File passwordFile)
Parameters:
passwordFile - the passwordFile to set
Throws:
IOException

savePasswordFile

public void savePasswordFile()
                      throws IOException
Save the Crypted Paswword to the File

Throws:
IOException

loadPasswordFile

public void loadPasswordFile()
                      throws Exception
Load the crypted password from the file

Throws:
Exception

getCryptedPassword

public String getCryptedPassword()
Returns:
the cryptedPassword

setCryptedPassword

public void setCryptedPassword(String cryptedPassword)
                        throws Exception
Parameters:
cryptedPassword - the cryptedPassword to set
Throws:
Exception

getClearPassword

public String getClearPassword()
Returns:
the clearPassword


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