org.gwe.utils.security
Class AccountInfo

java.lang.Object
  extended by org.gwe.utils.security.AccountInfo
All Implemented Interfaces:
java.io.Serializable

public class AccountInfo
extends java.lang.Object
implements java.io.Serializable

Since:
Jan 26, 2007
Author:
Marco Ruiz
See Also:
Serialized Form

Field Summary
static AccountInfo NO_AUTH_ACCOUNT
           
 
Constructor Summary
AccountInfo(java.lang.String user, java.lang.String password)
          Password based authenticated account
AccountInfo(java.lang.String user, java.lang.String passKey, byte[] privateKey, byte[] publicKey)
          Private key based authenticated account
AccountInfo(java.lang.String user, java.lang.String passphrase, java.lang.String privateKeyFilename, java.lang.String publicKeyFilename)
           
 
Method Summary
 AccountInfo clone()
           
static AccountInfo createLocalAccount()
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getPasskey()
           
 java.lang.String getPassphrase()
           
 java.lang.String getPassword()
           
 byte[] getPrivateKey()
           
 java.lang.String getPrivateKeyFileName()
           
 java.lang.String getProperty(java.lang.String propName)
           
 byte[] getPublicKey()
           
 java.lang.String getUser()
           
 int hashCode()
           
 void init()
           
 boolean isKeyFilesError()
           
 boolean missingPasskey()
           
 boolean missingPassphrase()
           
 boolean missingPassword()
           
 void setPasskey(java.lang.String passkey)
           
 void setPassphrase(java.lang.String passphrase)
           
 void setPassword(java.lang.String password)
           
 void setProperties(java.util.Properties properties)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_AUTH_ACCOUNT

public static final AccountInfo NO_AUTH_ACCOUNT
Constructor Detail

AccountInfo

public AccountInfo(java.lang.String user,
                   java.lang.String passphrase,
                   java.lang.String privateKeyFilename,
                   java.lang.String publicKeyFilename)
            throws java.io.FileNotFoundException,
                   java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

AccountInfo

public AccountInfo(java.lang.String user,
                   java.lang.String passKey,
                   byte[] privateKey,
                   byte[] publicKey)
Private key based authenticated account

Parameters:
accountName -
user -
passKey -
privateKey -

AccountInfo

public AccountInfo(java.lang.String user,
                   java.lang.String password)
Password based authenticated account

Method Detail

createLocalAccount

public static AccountInfo createLocalAccount()

init

public void init()

isKeyFilesError

public boolean isKeyFilesError()

getUser

public java.lang.String getUser()

getProperty

public java.lang.String getProperty(java.lang.String propName)

setProperties

public void setProperties(java.util.Properties properties)

getPassphrase

public java.lang.String getPassphrase()

getPrivateKeyFileName

public java.lang.String getPrivateKeyFileName()

getPrivateKey

public byte[] getPrivateKey()

getPublicKey

public byte[] getPublicKey()

getPassword

public java.lang.String getPassword()

clone

public AccountInfo clone()
Overrides:
clone in class java.lang.Object

getPasskey

public java.lang.String getPasskey()

setPassword

public void setPassword(java.lang.String password)

setPassphrase

public void setPassphrase(java.lang.String passphrase)

setPasskey

public void setPasskey(java.lang.String passkey)

missingPasskey

public boolean missingPasskey()

missingPassword

public boolean missingPassword()

missingPassphrase

public boolean missingPassphrase()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2007-2009. All Rights Reserved.