org.jboss.soa.esb.services.security.auth.ws
Class BinarySecurityTokenExtractor

java.lang.Object
  extended by org.jboss.soa.esb.services.security.auth.ws.BinarySecurityTokenExtractor
All Implemented Interfaces:
SecurityInfoExtractor<java.lang.String>

public class BinarySecurityTokenExtractor
extends java.lang.Object
implements SecurityInfoExtractor<java.lang.String>

This SecurityInfoExtractor implementation will extract data from a BinarySecurityToken if one exist in the xml String passed to this instances extractSecurityInfo method.

Author:
Daniel Bevenius

Constructor Summary
BinarySecurityTokenExtractor(java.lang.String securityNS)
          Creates a instance and uses the passed-in security namespace (NS) as the namesspace for the BinarySecurityToken.
 
Method Summary
 AuthenticationRequest extractSecurityInfo(java.lang.String soap)
          Will extract the data from a BinarySecurityToken element from the passed-in SOAP message String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinarySecurityTokenExtractor

public BinarySecurityTokenExtractor(java.lang.String securityNS)
Creates a instance and uses the passed-in security namespace (NS) as the namesspace for the BinarySecurityToken.

Parameters:
securityNS - The namespace for the BinarySecurityToken element.
Method Detail

extractSecurityInfo

public AuthenticationRequest extractSecurityInfo(java.lang.String soap)
                                          throws ExtractionException
Will extract the data from a BinarySecurityToken element from the passed-in SOAP message String. The extracted BinarySecurityToken keyj will be attached to the AuthenticationRequest as a credential.

Specified by:
extractSecurityInfo in interface SecurityInfoExtractor<java.lang.String>
Parameters:
soap - The String containing the SOAP message xml.
Returns:
AuthenticationRequest The ESB AuthenticationRequest with a credential of the content of the BinarySecurityToken, or null if the SOAP String did not contain a BinarySecurityHeader.
Throws:
ExtractionException