org.wso2.carbon.device.mgt.mobile.windows.api.common.util

## Class SOAPSecurityHandler

- java.lang.Object
- - org.wso2.carbon.device.mgt.mobile.windows.api.common.util.SOAPSecurityHandler

- All Implemented Interfaces:
    Handler<SOAPMessageContext>, SOAPHandler<SOAPMessageContext>

      public class SOAPSecurityHandler
      extends Object
      implements SOAPHandler<SOAPMessageContext>

  Class for handle SOAP message security.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SOAPSecurityHandler()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close(MessageContext context)`
    `Set<QName>` | `getHeaders()` This method resolves the security header coming in the SOAP message.
    `boolean` | `handleFault(SOAPMessageContext context)`
    `boolean` | `handleMessage(SOAPMessageContext context)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SOAPSecurityHandler

          public SOAPSecurityHandler()

  - ### Method Detail

    - #### getHeaders

          public Set<QName> getHeaders()

      This method resolves the security header coming in the SOAP message.
      Specified by:
        `getHeaders` in interface `SOAPHandler<SOAPMessageContext>`
      Returns:
        - Security Header

    - #### handleMessage

          public boolean handleMessage(SOAPMessageContext context)

      Specified by:
        `handleMessage` in interface `Handler<SOAPMessageContext>`

    - #### handleFault

          public boolean handleFault(SOAPMessageContext context)

      Specified by:
        `handleFault` in interface `Handler<SOAPMessageContext>`

    - #### close

          public void close(MessageContext context)

      Specified by:
        `close` in interface `Handler<SOAPMessageContext>`

Copyright © 2017 WSO2. All rights reserved.