electric.soap.security.authenticators
Class UsernameDigestCredentials

java.lang.Object
  extended byelectric.soap.security.authenticators.UsernameDigestCredentials
All Implemented Interfaces:
ICredentials

public class UsernameDigestCredentials
extends java.lang.Object
implements ICredentials

UsernameDigestCredentials correspond to a user authenticated with a UsernameToken containing a digested password.

Author:
webMethods

Constructor Summary
UsernameDigestCredentials(UsernameToken token)
           
 
Method Summary
 boolean authenticate(IRealm realm)
          Authenticate these credentials against the given realm.
 java.lang.String getUserName()
          Return the user name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsernameDigestCredentials

public UsernameDigestCredentials(UsernameToken token)
Parameters:
token -
Method Detail

getUserName

public java.lang.String getUserName()
Description copied from interface: ICredentials
Return the user name.

Specified by:
getUserName in interface ICredentials
Returns:
user name associated with this token.

authenticate

public boolean authenticate(IRealm realm)
                     throws java.lang.SecurityException
Authenticate these credentials against the given realm. The authentication process will set the tokens's non-digest username.

Specified by:
authenticate in interface ICredentials
Parameters:
realm -
Returns:
true if this token is authenticated, false otherwise.
Throws:
java.lang.SecurityException


copyright© 2001-2004 by webMethods All Rights Reserved.