Class WSSecurityException

    • Field Detail

      • NS_WSSE10

        public static final String NS_WSSE10
        Fault codes defined in the WSS 1.1 spec under section 12, Error handling
        See Also:
        Constant Field Values
      • UNSUPPORTED_SECURITY_TOKEN

        public static final QName UNSUPPORTED_SECURITY_TOKEN
        An unsupported token was provided
      • UNSUPPORTED_ALGORITHM

        public static final QName UNSUPPORTED_ALGORITHM
        An unsupported signature or encryption algorithm was used
      • INVALID_SECURITY

        public static final QName INVALID_SECURITY
        An error was discovered processing the header
      • INVALID_SECURITY_TOKEN

        public static final QName INVALID_SECURITY_TOKEN
        An invalid security token was provided
      • FAILED_AUTHENTICATION

        public static final QName FAILED_AUTHENTICATION
        The security token could not be authenticated or authorized
      • FAILED_CHECK

        public static final QName FAILED_CHECK
        The signature or decryption was invalid
      • SECURITY_TOKEN_UNAVAILABLE

        public static final QName SECURITY_TOKEN_UNAVAILABLE
        Referenced security token could not be retrieved
      • MESSAGE_EXPIRED

        public static final QName MESSAGE_EXPIRED
        The message has expired
      • SECURITY_ERROR

        public static final QName SECURITY_ERROR
        Generic Security error
    • Method Detail

      • getFaultCode

        public QName getFaultCode()
        Get the fault code QName for this associated error code.

        Returns:
        the fault code QName of this exception
      • getSafeExceptionMessage

        public String getSafeExceptionMessage()
        Get a "safe" / unified error message, so as not to leak internal configuration to an attacker.
      • getSafeFaultCode

        public QName getSafeFaultCode()
        Get the "safe" / unified fault code QName associated with this exception, so as not to leak internal configuration to an attacker