Class STSException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- 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
Fields Modifier and Type Field Description static QNameAUTH_BAD_ELEMENTSstatic QNameBAD_REQUESTstatic QNameEXPIRED_DATAstatic QNameFAILED_AUTHstatic QNameINVALID_REQUESTSpecification Fault Codesstatic QNameINVALID_SCOPEstatic QNameINVALID_TIMEstatic QNameINVALID_TOKENstatic QNameRENEW_NEEDEDstatic QNameREQUEST_FAILEDstatic QNameUNABLE_TO_RENEWstatic StringWST_NS_05_12WS-Trust 1.3 namespace
-
Constructor Summary
Constructors Constructor Description STSException(String message)STSException(String message, Throwable e)STSException(String message, Throwable e, QName faultCode)STSException(String message, QName faultCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QNamegetFaultCode()StringgetMessage()voidsetFaultCode(QName faultCode)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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
-
-
Method Detail
-
setFaultCode
public void setFaultCode(QName faultCode)
-
getFaultCode
public QName getFaultCode()
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
-