electric.soap.security.authenticators
Class UsernameTokenAuthenticator

java.lang.Object
  extended byelectric.soap.security.authenticators.UsernameTokenAuthenticator
All Implemented Interfaces:
IEXMLLoggingConstants, IGLUELoggingConstants, ILoggingConstants, IWSSAuthenticator, IWSSConstants

public class UsernameTokenAuthenticator
extends java.lang.Object
implements IWSSAuthenticator, IGLUELoggingConstants, IWSSConstants

WSSAuthenticate is responsible for authenticating each WS-Security token in an incoming message against a given security realm. If the actAsGuard flag is set, this autheticator requires that all UsernameTokens in the message can be found in the realm, and that there is at least one token. If actAsGuard is false, tokens not found in the realm are ignored, and the authenticator succeeds even if there are no tokens at all in the message.

Author:
webMethods

Field Summary
 
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
 
Fields inherited from interface electric.soap.security.IWSSConstants
PASSWORD_DIGEST, PASSWORD_TEXT, SECURITY, SECURITY_TOKEN_REFERENCE, URI_ATTRIBUTE, WSSE_NAMESPACE, WSSE_PREFIX, WSU_NAMESPACE, WSU_PREFIX, X509_ENCODING_TYPE
 
Constructor Summary
UsernameTokenAuthenticator(IRealm realm)
          Create a new WSSAuthenticate associated with the given realm.
UsernameTokenAuthenticator(IRealm realm, boolean actAsGuard)
          Create a new WSSAuthenticate associated with the given realm.
 
Method Summary
 boolean authenticate(SOAPMessage message, java.util.Vector tokenList, java.util.Vector principalList)
          Authenticate each UsernameToken in the token list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsernameTokenAuthenticator

public UsernameTokenAuthenticator(IRealm realm)
Create a new WSSAuthenticate associated with the given realm.

Parameters:
realm -

UsernameTokenAuthenticator

public UsernameTokenAuthenticator(IRealm realm,
                                  boolean actAsGuard)
Create a new WSSAuthenticate associated with the given realm.

Parameters:
realm -
Method Detail

authenticate

public boolean authenticate(SOAPMessage message,
                            java.util.Vector tokenList,
                            java.util.Vector principalList)
Authenticate each UsernameToken in the token list.

Specified by:
authenticate in interface IWSSAuthenticator
Parameters:
message -
tokenList -
principalList -
Returns:
authorization


copyright© 2001-2004 by webMethods All Rights Reserved.