com.filenet.api.authentication
Class UsernameCredentials
- java.lang.Object
-
- com.filenet.api.authentication.Credentials
-
- com.filenet.api.authentication.UsernameCredentials
-
public class UsernameCredentials extends Credentials
This class is a type ofCredentialsobject which holds authentication materials consisting of a username and password.This class may only be used with the WSI transport, and in that case removes the requirement to perform a JAAS login.
- Since:
- Version 5.5.9.
-
-
Constructor Summary
Constructors Constructor and Description UsernameCredentials(java.lang.String userName, java.lang.String password)Constructs an instance with a specified username and password.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object other)java.lang.StringgetPassword()Returns the password held by this object.java.lang.StringgetUsername()Returns the username held by this object.inthashCode()java.lang.StringtoString()-
Methods inherited from class com.filenet.api.authentication.Credentials
doAs, getCurrent
-
-
-
-
Constructor Detail
-
UsernameCredentials
public UsernameCredentials(java.lang.String userName, java.lang.String password)Constructs an instance with a specified username and password.- Parameters:
userName- The user name.password- The password for the user.
-
-
Method Detail
-
getUsername
public java.lang.String getUsername()
Returns the username held by this object. return The username.
-
getPassword
public java.lang.String getPassword()
Returns the password held by this object. return The password.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-