org.apache.ws.security.processor
Class UsernameTokenProcessor

java.lang.Object
  extended by org.apache.ws.security.processor.UsernameTokenProcessor
All Implemented Interfaces:
Processor

public class UsernameTokenProcessor
extends Object
implements Processor


Constructor Summary
UsernameTokenProcessor()
           
 
Method Summary
 List<WSSecurityEngineResult> handleToken(Element elem, RequestData data, WSDocInfo wsDocInfo)
           
 Credential handleUsernameToken(Element token, Validator validator, RequestData data)
          Check the UsernameToken element and validate it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsernameTokenProcessor

public UsernameTokenProcessor()
Method Detail

handleToken

public List<WSSecurityEngineResult> handleToken(Element elem,
                                                RequestData data,
                                                WSDocInfo wsDocInfo)
                                         throws WSSecurityException
Specified by:
handleToken in interface Processor
Throws:
WSSecurityException

handleUsernameToken

public Credential handleUsernameToken(Element token,
                                      Validator validator,
                                      RequestData data)
                               throws WSSecurityException
Check the UsernameToken element and validate it.

Parameters:
token - the DOM element that contains the UsernameToken
data - The RequestData object from which to obtain configuration
Returns:
a Credential object corresponding to the (validated) Username Token
Throws:
WSSecurityException


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.