electric.security.credentials
Class PasswordCredentials
java.lang.Object
electric.security.credentials.PasswordCredentials
- All Implemented Interfaces:
- ICredentials
- public class PasswordCredentials
- extends java.lang.Object
- implements ICredentials
PasswordCredentials contains username/password
pair. Authentication requires a Realm that supports a visible
password. This will change with the introduction of
IAuthComparator objects.
- Author:
- webMethods
Field Summary |
java.lang.String |
password
|
java.lang.String |
user
|
Method Summary |
boolean |
authenticate(IRealm realm)
Authenticate this set of credentials against the given realm. |
java.lang.String |
getUserName()
Return the user name. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
user
public java.lang.String user
password
public java.lang.String password
PasswordCredentials
public PasswordCredentials()
PasswordCredentials
public PasswordCredentials(java.lang.String user,
java.lang.String password)
- Parameters:
user
- password
-
getUserName
public java.lang.String getUserName()
- Description copied from interface:
ICredentials
- Return the user name.
- Specified by:
getUserName
in interface ICredentials
- Returns:
- the user name.
authenticate
public boolean authenticate(IRealm realm)
- Description copied from interface:
ICredentials
- Authenticate this set of credentials against the given realm.
- Specified by:
authenticate
in interface ICredentials
- Parameters:
realm
-
toString
public java.lang.String toString()
- Returns:
copyright© 2001-2004 by webMethods All Rights Reserved.