Class Password
- java.lang.Object
-
- dk.netarkivet.harvester.datamodel.Password
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
equals method overriding Object#equals.java.lang.String
getComments()
Get the comment of this object.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.
-
-
-
Constructor Detail
-
Password
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)
Create a new password object with the given information.- Parameters:
name
- The name of the Passwordcomments
- Any commentspasswordDomain
- the domain where this Password is usedrealm
- the realm of the Passwordusername
- the usernamepassword
- the password
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:Named
Get the name of this object.
-
getComments
public java.lang.String getComments()
Description copied from interface:Named
Get the comment of this object.- Specified by:
getComments
in interfaceNamed
- Returns:
- the comments for the Password
-
getPasswordDomain
public java.lang.String getPasswordDomain()
- Returns:
- the domain for the Password
-
getRealm
public java.lang.String getRealm()
- Returns:
- the Realm for the Password
-
getUsername
public java.lang.String getUsername()
- Returns:
- the username.
-
getPassword
public java.lang.String getPassword()
- Returns:
- the password.
-
equals
public boolean equals(java.lang.Object o)
equals method overriding Object#equals. Autogenerated code.- Overrides:
equals
in classjava.lang.Object
- Parameters:
o
- The object to compare with- Returns:
- Whether they are equal
-
hashCode
public int hashCode()
hashCode method overriding Object#hashCode. Autogenerated code.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashcode
-
-