public class IdentityTokenHandlerImpl
extends java.lang.Object
implements javax.xml.rpc.handler.Handler
Constructor and Description |
---|
IdentityTokenHandlerImpl()
Creates an instance of the Open Web Service JAX-RPC handler.
|
Modifier and Type | Method and Description |
---|---|
void | destroy()
Cleanup of the JAX-RPC handler.
|
javax.xml.namespace.QName[] | getHeaders()
Returns the headers that were specified in the configuration.
|
boolean | handleFault(javax.xml.rpc.handler.MessageContext messageContext)
Handles the fault and returns true to call the next handler to process the fault.
|
boolean | handleRequest(javax.xml.rpc.handler.MessageContext messageContext)
Handles the request and returns true to allow the next handler to process the request.
|
boolean | handleResponse(javax.xml.rpc.handler.MessageContext messageContext)
Handles the response and returns true to all the next handler to process the response.
|
void | init(javax.xml.rpc.handler.HandlerInfo handlerInfo)
Initializes the handler by setting the header QName.
|
protected java.lang.String | resolveLTPATokenFromHeader(javax.xml.rpc.handler.soap.SOAPMessageContext messageContext)
This method finds the LTPA token from the SOAP messageContext of this request.
|
public IdentityTokenHandlerImpl()
public boolean handleRequest(javax.xml.rpc.handler.MessageContext messageContext)
public boolean handleResponse(javax.xml.rpc.handler.MessageContext messageContext)
public boolean handleFault(javax.xml.rpc.handler.MessageContext messageContext)
public void init(javax.xml.rpc.handler.HandlerInfo handlerInfo)
public void destroy()
public javax.xml.namespace.QName[] getHeaders()
protected java.lang.String resolveLTPATokenFromHeader(javax.xml.rpc.handler.soap.SOAPMessageContext messageContext) throws ServiceException
This method finds the LTPA token from the SOAP messageContext of this request. This implementation parses the SOAP messageContext and looks for a node that represents the LTPA token. If the node is found and the LTPA token is valid, then the LTPA token is resolved. If the LTPA token is not valid, a service exception is thrown. If an LTPA token is not found then null is returned.
XKEk+O46iPB1E2/4YB9HbMVQhu9cMpx3XSAwy1M9OEmJ9iVFZ9VnnQ8kMHCIdtfdqpAJWErz8oRISTYLvk
where BinarySecurityToken element is the LTPA token