|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kde.koala.AuthInfo
public class AuthInfo
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.
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 |
---|
protected AuthInfo(java.lang.Class dummy)
public AuthInfo()
public AuthInfo(AuthInfo info)
Method Detail |
---|
public boolean isModified()
public void setModified(boolean flag)
flag
- true to mark the object as modified, false to clear
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |