com.ibm.wsspi.wssecurity.core

Class SoapSecurityException

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • com.ibm.wsspi.wssecurity.core.SoapSecurityException
  • All Implemented Interfaces:
    java.io.Serializable


    public class SoapSecurityException
    extends java.lang.Exception
    Represents an exception while processing WS-Security.
    See Also:
    Serialized Form
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static SoapSecurityException format(javax.xml.namespace.QName fault, java.lang.String key)
      Creates a SoapSecurityException.
      static SoapSecurityException format(javax.xml.namespace.QName fault, java.lang.String key, org.apache.axiom.om.OMDocument doc)
      Creates a SoapSecurityException.
      static SoapSecurityException format(javax.xml.namespace.QName fault, java.lang.String key, java.lang.String arg1)
      Creates a SoapSecurityException.
      static SoapSecurityException format(javax.xml.namespace.QName fault, java.lang.String key, java.lang.String[] args)
      Creates a SoapSecurityException.
      static SoapSecurityException format(javax.xml.namespace.QName fault, java.lang.String key, java.lang.String[] args, java.lang.Throwable cause)
      Creates a SoapSecurityException.
      static SoapSecurityException format(javax.xml.namespace.QName fault, java.lang.String key, java.lang.String arg1, java.lang.String arg2)
      Creates a SoapSecurityException.
      static SoapSecurityException format(javax.xml.namespace.QName fault, java.lang.String key, java.lang.String arg1, java.lang.Throwable cause)
      Creates a SoapSecurityException.
      static SoapSecurityException format(javax.xml.namespace.QName fault, java.lang.String key, java.lang.Throwable cause)
      Creates a SoapSecurityException.
      static SoapSecurityException format(java.lang.String key)
      Creates a SoapSecurityException.
      static SoapSecurityException format(java.lang.String key, java.lang.String arg1)
      Creates a SoapSecurityException.
      static SoapSecurityException format(java.lang.String key, java.lang.String[] args)
      Creates a SoapSecurityException.
      static SoapSecurityException format(java.lang.String key, java.lang.String[] args, java.lang.Throwable cause)
      Creates a SoapSecurityException.
      static SoapSecurityException format(java.lang.String key, java.lang.String arg1, java.lang.String arg2)
      Creates a SoapSecurityException.
      static SoapSecurityException format(java.lang.String key, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3, java.lang.String arg4, java.lang.Throwable cause)
      Creates a SoapSecurityException.
      static SoapSecurityException format(java.lang.String key, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3, java.lang.Throwable cause)
      Creates a SoapSecurityException.
      static SoapSecurityException format(java.lang.String key, java.lang.String arg1, java.lang.Throwable cause)
      Creates a SoapSecurityException.
      static SoapSecurityException format(java.lang.String key, java.lang.Throwable cause)
      Creates a SoapSecurityException.
      java.lang.Throwable getCauseException()
      Returns a root exception.
      static java.util.ArrayList getElementsByTagNameNS(org.apache.axiom.om.OMNode node, java.lang.String nsUri, java.lang.String localName) 
      javax.xml.namespace.QName getFaultCode()
      Returns a SOAP faultcode.
      static java.lang.String getMessage(java.lang.String key)
      Get NLS messages, mainly use for throwing exceptions
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SoapSecurityException

        public SoapSecurityException()
        Creates a SoapSecurityException.
      • SoapSecurityException

        public SoapSecurityException(java.lang.String message)
        Creates a SoapSecurityException.
        Parameters:
        message - A message.
      • SoapSecurityException

        public SoapSecurityException(javax.xml.namespace.QName fault,
                             java.lang.String message)
        Creates a SoapSecurityException.
        Parameters:
        fault - A QName object which represents SOAP faultcode.
        message - A message.
      • SoapSecurityException

        public SoapSecurityException(javax.xml.namespace.QName fault,
                             java.lang.String message,
                             java.lang.Throwable cause)
        Creates a SoapSecurityException.
        Parameters:
        fault - A QName object which represents SOAP faultcode.
        message - A message.
        cause - The orginal exception
      • SoapSecurityException

        public SoapSecurityException(java.lang.String message,
                             java.lang.Throwable cause)
        Creates a SoapSecurityException.
        Parameters:
        message - A message.
        cause - A root exception. (message:cause)
      • SoapSecurityException

        public SoapSecurityException(java.lang.Throwable cause)
        Creates a SoapSecurityException.
        Parameters:
        cause - A root exception.
      • SoapSecurityException

        public SoapSecurityException(java.lang.Throwable e,
                             boolean compat)
    • Method Detail

      • format

        public static SoapSecurityException format(java.lang.String key)
        Creates a SoapSecurityException.
        Parameters:
        key - A resource key for the error message.
      • format

        public static SoapSecurityException format(java.lang.String key,
                                   java.lang.Throwable cause)
        Creates a SoapSecurityException.
        Parameters:
        key - Resource key for the error message.
        cause - A root exception.
      • format

        public static SoapSecurityException format(java.lang.String key,
                                   java.lang.String arg1)
        Creates a SoapSecurityException.
        Parameters:
        key - Resource key for the error message.
        arg1 - A parameter for the message resource.
      • format

        public static SoapSecurityException format(java.lang.String key,
                                   java.lang.String arg1,
                                   java.lang.Throwable cause)
        Creates a SoapSecurityException.
        Parameters:
        key - Resource key for the error message.
        arg1 - A parameter for the message resource.
        cause - A root exception.
      • format

        public static SoapSecurityException format(java.lang.String key,
                                   java.lang.String[] args)
        Creates a SoapSecurityException.
        Parameters:
        key - Resource key for the error message.
        args - Parameters for the message resource.
      • format

        public static SoapSecurityException format(java.lang.String key,
                                   java.lang.String[] args,
                                   java.lang.Throwable cause)
        Creates a SoapSecurityException.
        Parameters:
        key - Resource key for the error message.
        args - Parameters for the message resource.
        cause - A root exception.
      • format

        public static SoapSecurityException format(javax.xml.namespace.QName fault,
                                   java.lang.String key)
        Creates a SoapSecurityException.
        Parameters:
        fault - A QName object which represents SOAP faultcode.
        key - Resource key for the error message.
      • format

        public static SoapSecurityException format(javax.xml.namespace.QName fault,
                                   java.lang.String key,
                                   java.lang.Throwable cause)
        Creates a SoapSecurityException.
        Parameters:
        fault - A QName object which represents SOAP faultcode.
        key - Resource key for the error message.
        cause - A root exception.
      • format

        public static SoapSecurityException format(javax.xml.namespace.QName fault,
                                   java.lang.String key,
                                   java.lang.String arg1)
        Creates a SoapSecurityException.
        Parameters:
        fault - A QName object which represents SOAP faultcode.
        key - Resource key for the error message.
        arg1 - A parameter for the message resource.
      • format

        public static SoapSecurityException format(javax.xml.namespace.QName fault,
                                   java.lang.String key,
                                   java.lang.String arg1,
                                   java.lang.Throwable cause)
        Creates a SoapSecurityException.
        Parameters:
        fault - A QName object which represents SOAP faultcode.
        key - Resource key for the error message.
        arg1 - A parameter for the message resource.
        cause - A root exception.
      • format

        public static SoapSecurityException format(javax.xml.namespace.QName fault,
                                   java.lang.String key,
                                   java.lang.String[] args)
        Creates a SoapSecurityException.
        Parameters:
        fault - A QName object which represents SOAP faultcode.
        key - Resource key for the error message.
        args - An array which contains the parameters for the message resource.
      • format

        public static SoapSecurityException format(javax.xml.namespace.QName fault,
                                   java.lang.String key,
                                   java.lang.String[] args,
                                   java.lang.Throwable cause)
        Creates a SoapSecurityException.
        Parameters:
        fault - A QName object which represents SOAP faultcode.
        key - Resource key for the error message.
        args - An array which contains the parameters for the message resource.
        cause - A root exception.
      • format

        public static SoapSecurityException format(java.lang.String key,
                                   java.lang.String arg1,
                                   java.lang.String arg2)
        Creates a SoapSecurityException.
        Parameters:
        key - Resource key for the error message.
        arg1 - First parameter for the message resource.
        arg2 - Second parameter for the message resource.
      • format

        public static SoapSecurityException format(java.lang.String key,
                                   java.lang.String arg1,
                                   java.lang.String arg2,
                                   java.lang.String arg3,
                                   java.lang.Throwable cause)
        Creates a SoapSecurityException.
        Parameters:
        key - Resource key for the error message.
        arg1 - First parameter for the message resource.
        arg2 - Second parameter for the message resource.
        arg3 - Third parameter for the message resource.
        cause - A root exception
      • format

        public static SoapSecurityException format(java.lang.String key,
                                   java.lang.String arg1,
                                   java.lang.String arg2,
                                   java.lang.String arg3,
                                   java.lang.String arg4,
                                   java.lang.Throwable cause)
        Creates a SoapSecurityException.
        Parameters:
        key - Resource key for the error message.
        arg1 - First parameter for the message resource.
        arg2 - Second parameter for the message resource.
        arg3 - Third parameter for the message resource.
        arg4 - Fourth parameter for the message resource.
        cause - A root exception.
      • format

        public static SoapSecurityException format(javax.xml.namespace.QName fault,
                                   java.lang.String key,
                                   java.lang.String arg1,
                                   java.lang.String arg2)
        Creates a SoapSecurityException.
        Parameters:
        fault - A QName object which represents SOAP faultcode.
        key - Resource key for the error message.
        arg1 - First parameter for the message resource.
        arg2 - Second parameter for the message resource.
      • format

        public static SoapSecurityException format(javax.xml.namespace.QName fault,
                                   java.lang.String key,
                                   org.apache.axiom.om.OMDocument doc)
        Creates a SoapSecurityException. If the given DOM represents a SOAP fault (that is, a fault is occurred in processing a fault response message), appends the original fault message.
        Parameters:
        fault - A QName object which represents SOAP faultcode.
        key - Resource key for the error message.
        doc - A DOM of the received message.
      • getCauseException

        public java.lang.Throwable getCauseException()
        Returns a root exception.
        Returns:
        A root exception.
      • getFaultCode

        public javax.xml.namespace.QName getFaultCode()
        Returns a SOAP faultcode.
        Returns:
        A SOAP faultcode.
      • getMessage

        public static java.lang.String getMessage(java.lang.String key)
        Get NLS messages, mainly use for throwing exceptions
        Parameters:
        key - NLS message key
        Returns:
        NLS messages
      • getElementsByTagNameNS

        public static java.util.ArrayList getElementsByTagNameNS(org.apache.axiom.om.OMNode node,
                                                 java.lang.String nsUri,
                                                 java.lang.String localName)
        Parameters:
        node - node.
        nsUri - namespace URI of the element to match on. The special value * matches all namespaces.
        localName - local name of the element to match on. The special value * matches all local names.
        Returns:
        all the matched element nodes.
IBM WebSphere Application ServerTM
Release 9.0