|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bibalex.daf.handlers.Credential
public class Credential
Represents a credential to connect to a server.
Field Summary | |
---|---|
java.lang.String |
password
The password used to login. This is an unencrypted form of the password. |
java.lang.String |
serverIP
The IP of the server to connect to. |
java.lang.String |
username
The user name used to login. |
Constructor Summary | |
---|---|
Credential()
Creates a new instance of Credential. |
|
Credential(java.lang.String server,
java.lang.String username,
java.lang.String password,
boolean isEncrypted)
Creates a new instance of Credential. |
|
Credential(java.lang.String section,
java.lang.String serverElement,
java.lang.String usernameElement,
java.lang.String passwordElement)
Creates a new instance of Credential. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String serverIP
public java.lang.String username
public java.lang.String password
Constructor Detail |
---|
public Credential()
public Credential(java.lang.String section, java.lang.String serverElement, java.lang.String usernameElement, java.lang.String passwordElement) throws java.lang.Exception
section
- The section within the resource file to read the credntials from.serverElement
- The element name that contains the IP address of the server as its caption.usernameElement
- The element name that contains the user name as its caption.passwordElement
- The element name that contains the encrypted password as its caption.
java.lang.Exception
- If the server credentials couldn't be read.public Credential(java.lang.String server, java.lang.String username, java.lang.String password, boolean isEncrypted) throws java.lang.Exception
server
- The IP address of the server.username
- The user name.password
- The password.isEncrypted
- Whether the given password is encryptd or not.
java.lang.Exception
- If the server credentials couldn't be read.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |