org.apache.ws.security
Class WSSecurityException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byjava.rmi.RemoteException
                  extended byorg.apache.ws.security.WSSecurityException
All Implemented Interfaces:
java.io.Serializable

public class WSSecurityException
extends java.rmi.RemoteException

Exception class for WS-Security.

Author:
Davanum Srinivas (dims@yahoo.com).
See Also:
Serialized Form

Field Summary
static int FAILED_AUTHENTICATION
           
static int FAILED_CHECK
           
static int FAILED_ENCRYPTION
           
static int FAILED_SIGNATURE
           
static int FAILURE
           
static int INVALID_SECURITY
           
static int INVALID_SECURITY_TOKEN
           
static int MESSAGE_EXPIRED
           
static int SECURITY_TOKEN_UNAVAILABLE
           
static int UNSUPPORTED_ALGORITHM
           
static int UNSUPPORTED_SECURITY_TOKEN
           
 
Fields inherited from class java.rmi.RemoteException
detail
 
Constructor Summary
WSSecurityException(int errorCode)
          Constructor.
WSSecurityException(int errorCode, java.lang.String msgId)
          Constructor.
WSSecurityException(int errorCode, java.lang.String msgId, java.lang.Object[] args)
          Constructor.
WSSecurityException(int errorCode, java.lang.String msgId, java.lang.Object[] args, java.lang.Throwable exception)
          Constructor.
WSSecurityException(java.lang.String errorMessage)
          Constructor.
WSSecurityException(java.lang.String errorMessage, java.lang.Throwable t)
          Constructor.
 
Method Summary
 int getErrorCode()
          Get the error code.
 javax.xml.namespace.QName getFaultCode()
          Get the fault code QName for this associated error code.
 
Methods inherited from class java.rmi.RemoteException
getCause, getMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

FAILURE

public static final int FAILURE
See Also:
Constant Field Values

UNSUPPORTED_SECURITY_TOKEN

public static final int UNSUPPORTED_SECURITY_TOKEN
See Also:
Constant Field Values

UNSUPPORTED_ALGORITHM

public static final int UNSUPPORTED_ALGORITHM
See Also:
Constant Field Values

INVALID_SECURITY

public static final int INVALID_SECURITY
See Also:
Constant Field Values

INVALID_SECURITY_TOKEN

public static final int INVALID_SECURITY_TOKEN
See Also:
Constant Field Values

FAILED_AUTHENTICATION

public static final int FAILED_AUTHENTICATION
See Also:
Constant Field Values

FAILED_CHECK

public static final int FAILED_CHECK
See Also:
Constant Field Values

SECURITY_TOKEN_UNAVAILABLE

public static final int SECURITY_TOKEN_UNAVAILABLE
See Also:
Constant Field Values

MESSAGE_EXPIRED

public static final int MESSAGE_EXPIRED
See Also:
Constant Field Values

FAILED_ENCRYPTION

public static final int FAILED_ENCRYPTION
See Also:
Constant Field Values

FAILED_SIGNATURE

public static final int FAILED_SIGNATURE
See Also:
Constant Field Values
Constructor Detail

WSSecurityException

public WSSecurityException(int errorCode,
                           java.lang.String msgId,
                           java.lang.Object[] args,
                           java.lang.Throwable exception)
Constructor.

Parameters:
errorCode -
msgId -
args -
exception -

WSSecurityException

public WSSecurityException(int errorCode,
                           java.lang.String msgId,
                           java.lang.Object[] args)
Constructor.

Parameters:
errorCode -
msgId -
args -

WSSecurityException

public WSSecurityException(int errorCode,
                           java.lang.String msgId)
Constructor.

Parameters:
errorCode -
msgId -

WSSecurityException

public WSSecurityException(int errorCode)
Constructor.

Parameters:
errorCode -

WSSecurityException

public WSSecurityException(java.lang.String errorMessage)
Constructor.

Parameters:
errorMessage -

WSSecurityException

public WSSecurityException(java.lang.String errorMessage,
                           java.lang.Throwable t)
Constructor.

Parameters:
errorMessage -
Method Detail

getErrorCode

public int getErrorCode()
Get the error code.

Returns:
error code of this exception See values above.

getFaultCode

public javax.xml.namespace.QName getFaultCode()
Get the fault code QName for this associated error code.

Returns:
the fault code QName of this exception


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.