electric.security.credentials
Class DigestCredentials

java.lang.Object
  extended byelectric.security.credentials.DigestCredentials
All Implemented Interfaces:
ICredentials, IEXMLLoggingConstants, IGLUELoggingConstants, ILoggingConstants

public class DigestCredentials
extends java.lang.Object
implements ICredentials, IGLUELoggingConstants

DigestCredentials contains username/digest-info pair. Authentication currently requires a realm that supports getPassword(), although a more security conscious realm might prefer to only expose a password hash like H(A1), see rfc2617 for details. The implementation will change with the introduction of AuthComparators.

Author:
webMethods

Field Summary
 AuthHeaderData authData
           
 
Fields inherited from interface electric.glue.IGLUELoggingConstants
CLUSTER_DEBUG_EVENT, CLUSTER_EVENT, CONSOLE_DEBUG_EVENT, DEPLOY_EVENT, DETECTORS_EVENT, HTTP_EVENT, JMS_EVENT, REBINDING_EVENT, SECURITY_DEBUG_EVENT, SECURITY_DETAIL_EVENT, SERVLET_EVENT, SOAP_EVENT
 
Fields inherited from interface electric.xml.IEXMLLoggingConstants
MAPPING_EVENT, SCHEMA_EVENT
 
Fields inherited from interface electric.util.log.ILoggingConstants
CLASSLOADER_EVENT, COMMAND_EVENT, COMMENT_EVENT, CONFIG_EVENT, DEBUG_EVENT, ELECTRIC_LOGGING_PROPERTY, ERROR_EVENT, EXCEPTION_EVENT, FILE_EVENT, LICENSE_EVENT, RESOURCES_EVENT, SECURITY_EVENT, SHUTDOWN_EVENT, SOURCE_EVENT, SQL_EVENT, STARTUP_EVENT, WARNING_EVENT
 
Constructor Summary
DigestCredentials(AuthHeaderData data)
           
 
Method Summary
 boolean authenticate(IRealm realm)
          Authenticate this set of 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
 

Field Detail

authData

public AuthHeaderData authData
Constructor Detail

DigestCredentials

public DigestCredentials(AuthHeaderData data)
Parameters:
data -
Method Detail

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 -
Returns:
true if the given realm authenticates these credentials.


copyright© 2001-2004 by webMethods All Rights Reserved.