Oracle Security Developer Tools Web Services Security Java API Reference
10g Release 2 (10.1.2.0.2)

B15570-01


oracle.security.xmlsec.wss
Class WSSException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byoracle.security.xmlsec.wss.WSSException

All Implemented Interfaces:
java.io.Serializable

public class WSSException
extends java.lang.Exception

This class signals errors in processing an WS-WSSecurity header. An error code and optionally error message should be provided to create an WSSException. This information can be used to generate SOAPFault</cdoe> message.

See Also:
Serialized Form

Field Summary
static oracle.security.xmlsec.util.QName FAILED_AUTHENTICATION
Indicates that the security token could not be authenticated or authorized.
static oracle.security.xmlsec.util.QName FAILED_CHECK
Indicates that the signature or decryption failed.
static oracle.security.xmlsec.util.QName INVALID_SECURITY
Indicates that an error was discovered while processing the wsse:Security header.
static oracle.security.xmlsec.util.QName INVALID_SECURITY_TOKEN
Indicates that the security token is not valid.
static oracle.security.xmlsec.util.QName MESSAGE_EXPIRED
Indicates that the timestamp on the security token has expired.
static oracle.security.xmlsec.util.QName SECURITY_TOKEN_UNAVAILABLE
Indicates that the referenced security token could not be retrieved.
static oracle.security.xmlsec.util.QName UNSUPPORTED_ALGORITHM
Indicates that an unsupported signature or encryption algorithm was used.
static oracle.security.xmlsec.util.QName UNSUPPORTED_SECURITY_TOKEN
Indicates that the security token is unsupported.

Constructor Summary
WSSException()
Creates a new WSSException instance
WSSException(oracle.security.xmlsec.util.QName faultcode)
Create a new WSSException instance with the given fault code.
WSSException(oracle.security.xmlsec.util.QName faultcode, java.lang.String faultString)
Create a new WSSException instance with the given fault code and the detailed message.
WSSException(java.lang.String message)
Creates a new WSSException instance with the given message string.

Method Summary
oracle.security.xmlsec.soap.v11.SOAPEnvelope createSOAPFault()
Create a SOAP Fault message describing this exception.
oracle.security.xmlsec.util.QName getFaultCode()
Returns the WSS fault code.
java.lang.String getFaultString()
Returns the WSS fault string.
java.lang.String getMessage()
Returns the SOAP Fault Message.
java.lang.String toString()
Returns the description of the exception.

Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

UNSUPPORTED_SECURITY_TOKEN

public static final oracle.security.xmlsec.util.QName UNSUPPORTED_SECURITY_TOKEN
Indicates that the security token is unsupported.

UNSUPPORTED_ALGORITHM

public static final oracle.security.xmlsec.util.QName UNSUPPORTED_ALGORITHM
Indicates that an unsupported signature or encryption algorithm was used.

INVALID_SECURITY

public static final oracle.security.xmlsec.util.QName INVALID_SECURITY
Indicates that an error was discovered while processing the wsse:Security header.

INVALID_SECURITY_TOKEN

public static final oracle.security.xmlsec.util.QName INVALID_SECURITY_TOKEN
Indicates that the security token is not valid.

FAILED_AUTHENTICATION

public static final oracle.security.xmlsec.util.QName FAILED_AUTHENTICATION
Indicates that the security token could not be authenticated or authorized.

FAILED_CHECK

public static final oracle.security.xmlsec.util.QName FAILED_CHECK
Indicates that the signature or decryption failed.

SECURITY_TOKEN_UNAVAILABLE

public static final oracle.security.xmlsec.util.QName SECURITY_TOKEN_UNAVAILABLE
Indicates that the referenced security token could not be retrieved.

MESSAGE_EXPIRED

public static final oracle.security.xmlsec.util.QName MESSAGE_EXPIRED
Indicates that the timestamp on the security token has expired.

Constructor Detail

WSSException

public WSSException()
Creates a new WSSException instance

WSSException

public WSSException(java.lang.String message)
Creates a new WSSException instance with the given message string.
Parameters:
message - The exception message string.

WSSException

public WSSException(oracle.security.xmlsec.util.QName faultcode)
Create a new WSSException instance with the given fault code.
Parameters:
faultcode - The WSS fault code.

WSSException

public WSSException(oracle.security.xmlsec.util.QName faultcode,
                    java.lang.String faultString)
Create a new WSSException instance with the given fault code and the detailed message.
Parameters:
faultcode - The WSS fault code.
faultString - The WSS fault string.

Method Detail

getFaultCode

public oracle.security.xmlsec.util.QName getFaultCode()
Returns the WSS fault code.
Returns:
The fault code.

getFaultString

public java.lang.String getFaultString()
Returns the WSS fault string.
Returns:
The fault message.

getMessage

public java.lang.String getMessage()
Returns the SOAP Fault Message.
Returns:
The SOAP Fault message string.

toString

public java.lang.String toString()
Returns the description of the exception.
Returns:
The exception message.

createSOAPFault

public oracle.security.xmlsec.soap.v11.SOAPEnvelope createSOAPFault()
Create a SOAP Fault message describing this exception.

SOAP 1.1 is ONLY supported.

Returns:
The soap fault message.

Oracle Security Developer Tools Web Services Security Java API Reference
10g Release 2 (10.1.2.0.2)

B15570-01


Copyright © 2005 , Oracle. All rights reserved.