|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.rational.rpe.common.utils.Credential
public class Credential
The credential class is used to store authentication information, which is used to access data sources, templates, stylesheets, and other artifacts. A credential has the following properties:
Field Summary | |
---|---|
static java.lang.String |
AUTHENTICATION_METHOD_BASIC
Deprecated. |
Constructor Summary | |
---|---|
Credential()
|
|
Credential(java.lang.String cookies)
|
|
Credential(java.lang.String username,
java.lang.String password)
|
|
Credential(java.lang.String username,
java.lang.String password,
java.lang.String cookies)
|
|
Credential(java.lang.String username,
java.lang.String password,
java.lang.String cookies,
java.lang.String authenticationMethod)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAuthenticationMethod()
|
java.lang.String |
getCookies()
Returns the cookies stored for this credential object. |
java.lang.String |
getPassword()
Returns the password stored in this credential instance. |
java.lang.String |
getUsername()
Returns the user name stored in this credential instance. |
int |
hashCode()
|
static boolean |
isEmpty(Credential credential)
Returns true if the credential object that is passed as an argument is null or has no property set. |
void |
setAuthenticationMethod(java.lang.String authenticationMethod)
Sets the authentication method to be used. |
void |
setCookies(java.lang.String cookies)
Sets the cookies stored for this credential object. |
void |
setPassword(java.lang.String password)
Sets the password stored in this credential instance. |
void |
setUsername(java.lang.String username)
Sets the user name. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Deprecated public static final java.lang.String AUTHENTICATION_METHOD_BASIC
AuthenticationMethod.AUTHENTICATION_METHOD_BASIC
Constructor Detail |
---|
public Credential()
public Credential(java.lang.String cookies)
public Credential(java.lang.String username, java.lang.String password)
public Credential(java.lang.String username, java.lang.String password, java.lang.String cookies)
public Credential(java.lang.String username, java.lang.String password, java.lang.String cookies, java.lang.String authenticationMethod)
Method Detail |
---|
public java.lang.String getUsername()
public void setUsername(java.lang.String username)
public java.lang.String getPassword()
public void setPassword(java.lang.String password)
public java.lang.String getCookies()
setCookies
method.
Cookies and the username/password are usually mutually exclusive.
public void setCookies(java.lang.String cookies)
public void setAuthenticationMethod(java.lang.String authenticationMethod)
AuthenticationMethod
for the list of supported authentication methods.
For the best performance, set this authentication method to same value used by the source.
authenticationMethod
- - a string value from the list defined by AuthenticationMethod
public java.lang.String getAuthenticationMethod()
public static boolean isEmpty(Credential credential)
credential
-
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |