Apache CXF API

org.apache.cxf.ws.security.sts.provider
Class STSException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.cxf.ws.security.sts.provider.STSException
All Implemented Interfaces:
Serializable

public class STSException
extends RuntimeException

A RuntimeException that can be thrown by an STS implementation. If the FaultCode is set, then this code/String will be returned to the user, otherwise the Exception message is returned.

See Also:
Serialized Form

Field Summary
static QName AUTH_BAD_ELEMENTS
           
static QName BAD_REQUEST
           
static QName EXPIRED_DATA
           
static QName FAILED_AUTH
           
static QName INVALID_REQUEST
          Specification Fault Codes
static QName INVALID_SCOPE
           
static QName INVALID_TIME
           
static QName INVALID_TOKEN
           
static QName RENEW_NEEDED
           
static QName REQUEST_FAILED
           
static QName UNABLE_TO_RENEW
           
static String WST_NS_05_12
          WS-Trust 1.3 namespace
 
Constructor Summary
STSException(String message)
           
STSException(String message, QName faultCode)
           
STSException(String message, Throwable e)
           
STSException(String message, Throwable e, QName faultCode)
           
 
Method Summary
 QName getFaultCode()
           
 String getMessage()
           
 void setFaultCode(QName faultCode)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WST_NS_05_12

public static final String WST_NS_05_12
WS-Trust 1.3 namespace

See Also:
Constant Field Values

INVALID_REQUEST

public static final QName INVALID_REQUEST
Specification Fault Codes


FAILED_AUTH

public static final QName FAILED_AUTH

REQUEST_FAILED

public static final QName REQUEST_FAILED

INVALID_TOKEN

public static final QName INVALID_TOKEN

AUTH_BAD_ELEMENTS

public static final QName AUTH_BAD_ELEMENTS

BAD_REQUEST

public static final QName BAD_REQUEST

EXPIRED_DATA

public static final QName EXPIRED_DATA

INVALID_TIME

public static final QName INVALID_TIME

INVALID_SCOPE

public static final QName INVALID_SCOPE

RENEW_NEEDED

public static final QName RENEW_NEEDED

UNABLE_TO_RENEW

public static final QName UNABLE_TO_RENEW
Constructor Detail

STSException

public STSException(String message)

STSException

public STSException(String message,
                    QName faultCode)

STSException

public STSException(String message,
                    Throwable e)

STSException

public STSException(String message,
                    Throwable e,
                    QName faultCode)
Method Detail

setFaultCode

public void setFaultCode(QName faultCode)

getFaultCode

public QName getFaultCode()

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

Apache CXF API

Apache CXF