com.softwareag.entirex.aci
Class EntireXSecurity

java.lang.Object
  extended by com.softwareag.entirex.aci.EntireXSecurity
All Implemented Interfaces:
BrokerSecurity

public class EntireXSecurity
extends java.lang.Object
implements BrokerSecurity

EntireX implementation of the Broker Security interface.
Never call the methods of this class directly, they are called automatically during logon processing.

See Also:
BrokerSecurity, Broker.logon(java.lang.String)

Constructor Summary
EntireXSecurity()
           
 
Method Summary
 void decryptData(byte[] data)
          Decrypts the received data in place.
 void encryptData(byte[] data)
          Encrypts the sent data in place.
 byte[] getNewpassword()
          Returns the encrypted Newpassword if it was supplied in the prepareLogon call.
 byte[] getPassword()
          Returns the encrypted password if it was supplied in the prepareLogon call.
 byte[] getSecurityToken()
          Returns a Security Token.
 byte[] prepareAutoLogon(byte[] securityToken)
           
 void prepareLogon(java.lang.String USERID, byte[] password, byte[] newpassword, byte[] securityToken)
          Encrypts the password(s) and generates a security token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntireXSecurity

public EntireXSecurity()
Method Detail

prepareLogon

public void prepareLogon(java.lang.String USERID,
                         byte[] password,
                         byte[] newpassword,
                         byte[] securityToken)
Description copied from interface: BrokerSecurity
Encrypts the password(s) and generates a security token.
This method is always called inside the Broker logon methods. It is called before performing a logon call to the Broker. This method prepares the encryption of the password and the new password and the generation of the security token. These values will be retrieved by the getPassword, getNewpassword and getSecurityToken methods.

Specified by:
prepareLogon in interface BrokerSecurity
Parameters:
USERID - user ID from Broker constructor.
password - Password from logon method. May be null.
newpassword - New password from logon method. May be null.
securityToken - Security token from Broker object. May be null.
See Also:
Broker.logon(), Broker.logon(java.lang.String), Broker.logon(java.lang.String, java.lang.String), BrokerSecurity.getPassword(), BrokerSecurity.getNewpassword(), BrokerSecurity.getSecurityToken()

prepareAutoLogon

public byte[] prepareAutoLogon(byte[] securityToken)

getPassword

public byte[] getPassword()
Description copied from interface: BrokerSecurity
Returns the encrypted password if it was supplied in the prepareLogon call.

Specified by:
getPassword in interface BrokerSecurity
Returns:
The encrypted password or null.
See Also:
BrokerSecurity.prepareLogon(java.lang.String, byte[], byte[], byte[])

getNewpassword

public byte[] getNewpassword()
Description copied from interface: BrokerSecurity
Returns the encrypted Newpassword if it was supplied in the prepareLogon call.

Specified by:
getNewpassword in interface BrokerSecurity
Returns:
The encrypted new password or null.
See Also:
BrokerSecurity.prepareLogon(java.lang.String, byte[], byte[], byte[])

getSecurityToken

public byte[] getSecurityToken()
Description copied from interface: BrokerSecurity
Returns a Security Token.

Specified by:
getSecurityToken in interface BrokerSecurity
Returns:
The Security Token.
See Also:
BrokerSecurity.prepareLogon(java.lang.String, byte[], byte[], byte[])

encryptData

public void encryptData(byte[] data)
Description copied from interface: BrokerSecurity
Encrypts the sent data in place.

Specified by:
encryptData in interface BrokerSecurity
Parameters:
data - The send data.

decryptData

public void decryptData(byte[] data)
Description copied from interface: BrokerSecurity
Decrypts the received data in place.

Specified by:
decryptData in interface BrokerSecurity
Parameters:
data - The receive data.