electric.soap.security
Class WSSContextIn

java.lang.Object
  extended byelectric.soap.security.WSSContextIn

public class WSSContextIn
extends java.lang.Object

WSSContextIn holds the ws-security configuration information for incoming messages.

Author:
webMethods

Field Summary
protected  java.util.Hashtable authenticatorNames
           
protected  java.util.Vector authenticators
           
protected  java.util.Vector authorizers
           
protected  SecurityTokenFactory tokenFactory
           
 
Constructor Summary
WSSContextIn()
           
 
Method Summary
 void addAuthenticator(IWSSAuthenticator authenticate)
          Add an authentication requirement.
 void addAuthenticator(IWSSAuthenticator authenticate, java.lang.String name)
           
 void addGuard(IWSSGuard authorizer)
           
 boolean authenticate(SOAPMessage message, java.util.Vector tokenList, java.util.Vector principalList)
          Authenticate the message by giving each configured authenticator a chance to scan the message for information that identifies a principal.
 java.util.Enumeration authenticators()
          Return an enumeration over the current set of authenticators.
 boolean authorize(SOAPMessage message, java.util.Vector signatures, java.util.Vector encryptions, java.util.Vector principalList)
           
 IWSSAuthenticator getAuthenticatorByName(java.lang.String name)
           
 SecurityTokenFactory getTokenFactory()
          Return the context's associated token factory.
 java.util.Enumeration guards()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tokenFactory

protected SecurityTokenFactory tokenFactory

authenticators

protected java.util.Vector authenticators

authenticatorNames

protected java.util.Hashtable authenticatorNames

authorizers

protected java.util.Vector authorizers
Constructor Detail

WSSContextIn

public WSSContextIn()
Method Detail

getTokenFactory

public SecurityTokenFactory getTokenFactory()
Return the context's associated token factory.

Returns:
security token factory associated with this context.

addAuthenticator

public void addAuthenticator(IWSSAuthenticator authenticate)
Add an authentication requirement.

Parameters:
authenticate -

addAuthenticator

public void addAuthenticator(IWSSAuthenticator authenticate,
                             java.lang.String name)
Parameters:
authenticate -
name -

getAuthenticatorByName

public IWSSAuthenticator getAuthenticatorByName(java.lang.String name)
Parameters:
name -
Returns:
authenticator matching name, or null

authenticators

public java.util.Enumeration authenticators()
Return an enumeration over the current set of authenticators.

Returns:
authenticators associated with this context.

authenticate

public boolean authenticate(SOAPMessage message,
                            java.util.Vector tokenList,
                            java.util.Vector principalList)
Authenticate the message by giving each configured authenticator a chance to scan the message for information that identifies a principal. Authenticators normally return true, but may act as a guard and return false, in which case we stop authentication and immediately return false.

Parameters:
message -
tokenList - ws-security tokens parsed from soap headers
principalList - return holder for authenticated principals

addGuard

public void addGuard(IWSSGuard authorizer)

authorize

public boolean authorize(SOAPMessage message,
                         java.util.Vector signatures,
                         java.util.Vector encryptions,
                         java.util.Vector principalList)
Parameters:
message -
signatures -
principalList -
Returns:
true if authorization succeeds, false otherwise.

guards

public java.util.Enumeration guards()
Returns:
guards associated with this context.


copyright© 2001-2004 by webMethods All Rights Reserved.