public class WSSException
extends oracle.security.xmlsec.util.ChainedException
WSSException
. This information can be used to generate SOAPFault
message.Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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.
|
WSSException(java.lang.Throwable cause, oracle.security.xmlsec.util.QName faultcode)
Create a new
WSSException instance with the given fault code. |
Modifier and Type | Method and Description |
---|---|
oracle.security.xmlsec.soap.v11.SOAPEnvelope |
createSOAPFault()
Create a SOAP Fault message describing this exception.
|
oracle.security.xmlsec.soap.v12.SOAPEnvelope |
createSOAPFault12()
Create a SOAP Fault message describing this exception.
|
oracle.security.xmlsec.util.QName |
getFaultCode()
Return the WSS fault code.
|
java.lang.String |
getFaultString()
Return the WSS fault string.
|
java.lang.String |
getMessage()
Return the SOAP Fault Message.
|
java.lang.String |
getTraceString()
Used to return the Exception Stack Trace.
|
java.lang.String |
toString()
Return the description of the exception.
|
public static final oracle.security.xmlsec.util.QName UNSUPPORTED_SECURITY_TOKEN
public static final oracle.security.xmlsec.util.QName UNSUPPORTED_ALGORITHM
public static final oracle.security.xmlsec.util.QName INVALID_SECURITY
public static final oracle.security.xmlsec.util.QName INVALID_SECURITY_TOKEN
public static final oracle.security.xmlsec.util.QName FAILED_AUTHENTICATION
public static final oracle.security.xmlsec.util.QName FAILED_CHECK
public static final oracle.security.xmlsec.util.QName SECURITY_TOKEN_UNAVAILABLE
public static final oracle.security.xmlsec.util.QName MESSAGE_EXPIRED
public WSSException()
public WSSException(java.lang.String message)
message
- The exception message string.public WSSException(oracle.security.xmlsec.util.QName faultcode)
WSSException
instance with the given fault code.faultcode
- The WSS fault code.public WSSException(java.lang.Throwable cause, oracle.security.xmlsec.util.QName faultcode)
WSSException
instance with the given fault code.faultcode
- The WSS fault code.cause
- The exception cause.public WSSException(oracle.security.xmlsec.util.QName faultcode, java.lang.String faultString)
WSSException
instance with the given fault code and the detailed message.faultcode
- The WSS fault code.faultString
- The WSS fault string.public oracle.security.xmlsec.util.QName getFaultCode()
public java.lang.String getFaultString()
public java.lang.String getTraceString()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Throwable
public oracle.security.xmlsec.soap.v11.SOAPEnvelope createSOAPFault()
SOAP 1.1 is ONLY supported.
public oracle.security.xmlsec.soap.v12.SOAPEnvelope createSOAPFault12()
SOAP 1.2 version fault