Package org.apache.wss4j.common.ext
Class WSSecurityException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.xml.security.exceptions.XMLSecurityException
org.apache.wss4j.common.ext.WSSecurityException
- All Implemented Interfaces:
Serializable
public class WSSecurityException
extends org.apache.xml.security.exceptions.XMLSecurityException
Exception class for WS-Security.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QNameThe security token could not be authenticated or authorizedstatic final Stringstatic final QNameThe signature or decryption was invalidstatic final Stringstatic final QNameAn error was discovered processing theheader static final Stringstatic final QNameAn invalid security token was providedstatic final Stringstatic final QNameThe message has expiredstatic final Stringstatic final StringFault codes defined in the WSS 1.1 spec under section 12, Error handlingstatic final QNameGeneric Security errorstatic final QNameReferenced security token could not be retrievedstatic final Stringstatic final Stringstatic final QNameAn unsupported signature or encryption algorithm was usedstatic final Stringstatic final QNameAn unsupported token was providedstatic final StringFields inherited from class org.apache.xml.security.exceptions.XMLSecurityException
msgID -
Constructor Summary
ConstructorsConstructorDescriptionWSSecurityException(WSSecurityException.ErrorCode errorCode) WSSecurityException(WSSecurityException.ErrorCode errorCode, Exception exception) WSSecurityException(WSSecurityException.ErrorCode errorCode, Exception exception, String msgId) WSSecurityException(WSSecurityException.ErrorCode errorCode, Exception exception, String msgId, Object[] arguments) WSSecurityException(WSSecurityException.ErrorCode errorCode, String msgId) WSSecurityException(WSSecurityException.ErrorCode errorCode, String msgId, Object[] arguments) -
Method Summary
Modifier and TypeMethodDescriptionGet the error code.Get the fault code QName for this associated error code.Get a "safe" / unified error message, so as not to leak internal configuration to an attacker.Get the "safe" / unified fault code QName associated with this exception, so as not to leak internal configuration to an attackerMethods inherited from class org.apache.xml.security.exceptions.XMLSecurityException
getMsgID, getOriginalException, printStackTrace, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
NS_WSSE10
Fault codes defined in the WSS 1.1 spec under section 12, Error handling- See Also:
-
UNSUPPORTED_SECURITY_TOKEN
An unsupported token was provided -
UNSUPPORTED_ALGORITHM
An unsupported signature or encryption algorithm was used -
INVALID_SECURITY
An error was discovered processing theheader -
INVALID_SECURITY_TOKEN
An invalid security token was provided -
FAILED_AUTHENTICATION
The security token could not be authenticated or authorized -
FAILED_CHECK
The signature or decryption was invalid -
SECURITY_TOKEN_UNAVAILABLE
Referenced security token could not be retrieved -
MESSAGE_EXPIRED
The message has expired -
SECURITY_ERROR
Generic Security error -
UNSUPPORTED_TOKEN_ERR
- See Also:
-
UNSUPPORTED_ALGORITHM_ERR
- See Also:
-
INVALID_SECURITY_ERR
- See Also:
-
INVALID_SECURITY_TOKEN_ERR
- See Also:
-
FAILED_AUTHENTICATION_ERR
- See Also:
-
FAILED_CHECK_ERR
- See Also:
-
SECURITY_TOKEN_UNAVAILABLE_ERR
- See Also:
-
MESSAGE_EXPIRED_ERR
- See Also:
-
UNIFIED_SECURITY_ERR
- See Also:
-
-
Constructor Details
-
WSSecurityException
-
WSSecurityException
-
WSSecurityException
-
WSSecurityException
public WSSecurityException(WSSecurityException.ErrorCode errorCode, Exception exception, String msgId) -
WSSecurityException
public WSSecurityException(WSSecurityException.ErrorCode errorCode, Exception exception, String msgId, Object[] arguments) -
WSSecurityException
public WSSecurityException(WSSecurityException.ErrorCode errorCode, String msgId, Object[] arguments)
-
-
Method Details
-
getErrorCode
Get the error code.- Returns:
- error code of this exception See values above.
-
getFaultCode
Get the fault code QName for this associated error code.- Returns:
- the fault code QName of this exception
-
getSafeExceptionMessage
Get a "safe" / unified error message, so as not to leak internal configuration to an attacker. -
getSafeFaultCode
Get the "safe" / unified fault code QName associated with this exception, so as not to leak internal configuration to an attacker
-