com.bluestream.xdb
Class SimpleAuthInfo

java.lang.Object
  extended bycom.bluestream.xdb.SimpleAuthInfo
All Implemented Interfaces:
AuthenticationInfo

public class SimpleAuthInfo
extends Object
implements AuthenticationInfo

Client-side authentication info container. The object is created with a plain-text password, but is stored as an MD5 hash. NOTE: Once constructed, this object is read-only.


Field Summary
 
Fields inherited from interface com.bluestream.xdb.AuthenticationInfo
c_realm
 
Constructor Summary
SimpleAuthInfo()
          Default authorization constructor.
SimpleAuthInfo(String userName, String password)
          Constructor.
 
Method Summary
 void deserialize(DataInputStream din)
           
 boolean equals(Object obj)
           
 String getEncryptedPassword()
          Returns the password as an ASCII padded MD5 hash.
 String getUserName()
          Returns the user name which this object was initialized with.
 void serialize(DataOutputStream byteOut)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleAuthInfo

public SimpleAuthInfo(String userName,
                      String password)
Constructor. Allows username and password to be specified.


SimpleAuthInfo

public SimpleAuthInfo()
Default authorization constructor. This creates an AuthenticationInfo object with the default username and password.

Method Detail

getEncryptedPassword

public String getEncryptedPassword()
Returns the password as an ASCII padded MD5 hash.

Specified by:
getEncryptedPassword in interface AuthenticationInfo

getUserName

public String getUserName()
Returns the user name which this object was initialized with.

Specified by:
getUserName in interface AuthenticationInfo

serialize

public void serialize(DataOutputStream byteOut)
               throws IOException,
                      XDBException
Specified by:
serialize in interface AuthenticationInfo
Throws:
IOException
XDBException

deserialize

public void deserialize(DataInputStream din)

equals

public boolean equals(Object obj)


Copyright 2006 Bluestream Database Software Corp. All Rights Reserved.