org.kde.koala
Class AuthInfo

java.lang.Object
  extended by org.kde.koala.AuthInfo
All Implemented Interfaces:
org.kde.qt.QtSupport

public class AuthInfo
extends java.lang.Object
implements org.kde.qt.QtSupport

This class is intended to make it easier to prompt for, cache and retrieve authorization information. When using this class to cache, retrieve or prompt authentication information, you only need to set the necessary attributes. For example, to check whether a password is already cached, the only required information is the URL of the resource and optionally whether or not a path match should be performed. Similarly, to prompt for password you only need to optionally set the prompt, username (if already supplied), comment and commentLabel fields. SPECIAL NOTE: If you extend this class to add additional parameters do not forget to overload the stream insertion and extraction operators ("<<" and ">>") so that the added data can be correctly serialzed.

Author:
Dawit Alemayehu

Constructor Summary
  AuthInfo()
          Default constructor.
  AuthInfo(AuthInfo info)
          Copy constructor.
protected AuthInfo(java.lang.Class dummy)
           
 
Method Summary
 boolean isModified()
          Use this method to check if the object was modified.
 void setModified(boolean flag)
          Use this method to indicate that this object has been modified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthInfo

protected AuthInfo(java.lang.Class dummy)

AuthInfo

public AuthInfo()
Default constructor.


AuthInfo

public AuthInfo(AuthInfo info)
Copy constructor.

Method Detail

isModified

public boolean isModified()
Use this method to check if the object was modified.

Returns:
true if the object has been modified

setModified

public void setModified(boolean flag)
Use this method to indicate that this object has been modified.

Parameters:
flag - true to mark the object as modified, false to clear