|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.harvester.datamodel.Password
public final class Password
Immutable password class. Represents a http credentials password. See RFC 2617: HTTP Authentication: Basic and Digest Access Authentication
Constructor Summary | |
---|---|
Password(java.lang.String name,
java.lang.String comments,
java.lang.String passwordDomain,
java.lang.String realm,
java.lang.String username,
java.lang.String password)
Create a new password object with the given information. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
equals method overriding Object#equals. |
java.lang.String |
getComments()
Get the comment of this object. |
(package private) long |
getID()
Get the ID of this password. |
java.lang.String |
getName()
Get the name of this object. |
java.lang.String |
getPassword()
|
java.lang.String |
getPasswordDomain()
|
java.lang.String |
getRealm()
|
java.lang.String |
getUsername()
|
int |
hashCode()
hashCode method overriding Object#hashCode. |
(package private) boolean |
hasID()
Check if this password has an ID set yet (doesn't happen until the DBDAO persists it). |
(package private) void |
setID(long id)
Set the ID of this password. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Password(java.lang.String name, java.lang.String comments, java.lang.String passwordDomain, java.lang.String realm, java.lang.String username, java.lang.String password)
name
- The name of the Passwordcomments
- Any commentspasswordDomain
- the domain where this Password is usedrealm
- the realm of the Passwordusername
- the usernamepassword
- the passwordMethod Detail |
---|
public java.lang.String getName()
Named
getName
in interface Named
public java.lang.String getComments()
Named
getComments
in interface Named
public java.lang.String getPasswordDomain()
public java.lang.String getRealm()
public java.lang.String getUsername()
public java.lang.String getPassword()
long getID()
void setID(long id)
id
- the new ID of this passwordboolean hasID()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The object to compare with
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |