com.ibm.websphere.security.auth
Class WSSecurityContextException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.security.GeneralSecurityException
                    |
                    +--com.ibm.websphere.security.WSSecurityException
                          |
                          +--com.ibm.websphere.security.auth.WSSecurityContextException
All Implemented Interfaces:
java.io.Serializable

Deprecated. This class is being deprecated in favor of using JAAS.

public class WSSecurityContextException
extends WSSecurityException

This exception is thrown whenever one of the WSSecurityContext methods encounters an invalid parameter passed into the method.

Since:
1.0
Version:
1.0
See Also:
WSSecurityContext, Serialized Form

Field Summary
static int AuthenticationFailed
          Deprecated. Valid MAJOR CODES for exceptions thrown in this class.
static int AuthenticationNotImplemented
          Deprecated.  
static int CredentialTokenExpired
          Deprecated.  
static int DuplicateType
          Deprecated.  
static int EncodeDecodeError
          Deprecated.  
static int InvalidCredentialToken
          Deprecated.  
static int InvalidPassword
          Deprecated.  
static int InvalidRealm
          Deprecated.  
static int InvalidSecurityCredentials
          Deprecated.  
static int InvalidType
          Deprecated.  
static int InvalidUserid
          Deprecated.  
static int InvalidValue
          Deprecated.  
static int JavaException
          Deprecated.  
static int MethodNotImplemented
          Deprecated.  
static int SecurityMechanismNotImplemented
          Deprecated.  
static int SecurityServerNotAvailable
          Deprecated.  
static int UnknownException
          Deprecated.  
static int ValidationFailed
          Deprecated.  
static int ValidationNotImplemented
          Deprecated.  
 
Constructor Summary
WSSecurityContextException(int majorCode, int minorCode, java.lang.String minorString)
          Deprecated. Creates a WSSecurityContextException object with the specified major code, minor code, and minor code textual explanation
WSSecurityContextException(int majorCode, int minorCode, java.lang.String minorString, java.lang.Throwable t)
          Deprecated.  
 
Method Summary
 int getMajor()
          Deprecated. Returns the WSSecurityContext level major error code for the problem causing this exception to be thrown.
 int getMinor()
          Deprecated. Returns the minor error code for the problem causing this exception to be thrown.
 java.lang.String getMinorString()
          Deprecated. Use getCause() to get the originating exception.
 java.lang.String toString()
          Deprecated. Returns a textual representation of both the major and the minor status codes.
 
Methods inherited from class com.ibm.websphere.security.WSSecurityException
addException, getCause, getExceptions, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AuthenticationFailed

public static final int AuthenticationFailed
Deprecated. 
Valid MAJOR CODES for exceptions thrown in this class. These codes must be used for the authentication protocol to properly perform retries for failures which it is meaningful to do so. A retry will only be performed if the authentication retry property is enabled (by default it is). Valid MINOR CODES are user defined.

See Also:
Constant Field Values

InvalidUserid

public static final int InvalidUserid
Deprecated. 
See Also:
Constant Field Values

InvalidPassword

public static final int InvalidPassword
Deprecated. 
See Also:
Constant Field Values

InvalidRealm

public static final int InvalidRealm
Deprecated. 
See Also:
Constant Field Values

ValidationFailed

public static final int ValidationFailed
Deprecated. 
See Also:
Constant Field Values

CredentialTokenExpired

public static final int CredentialTokenExpired
Deprecated. 
See Also:
Constant Field Values

InvalidCredentialToken

public static final int InvalidCredentialToken
Deprecated. 
See Also:
Constant Field Values

InvalidSecurityCredentials

public static final int InvalidSecurityCredentials
Deprecated. 
See Also:
Constant Field Values

SecurityServerNotAvailable

public static final int SecurityServerNotAvailable
Deprecated. 
See Also:
Constant Field Values

MethodNotImplemented

public static final int MethodNotImplemented
Deprecated. 
See Also:
Constant Field Values

AuthenticationNotImplemented

public static final int AuthenticationNotImplemented
Deprecated. 
See Also:
Constant Field Values

ValidationNotImplemented

public static final int ValidationNotImplemented
Deprecated. 
See Also:
Constant Field Values

SecurityMechanismNotImplemented

public static final int SecurityMechanismNotImplemented
Deprecated. 
See Also:
Constant Field Values

JavaException

public static final int JavaException
Deprecated. 
See Also:
Constant Field Values

UnknownException

public static final int UnknownException
Deprecated. 
See Also:
Constant Field Values

InvalidValue

public static final int InvalidValue
Deprecated. 
See Also:
Constant Field Values

InvalidType

public static final int InvalidType
Deprecated. 
See Also:
Constant Field Values

DuplicateType

public static final int DuplicateType
Deprecated. 
See Also:
Constant Field Values

EncodeDecodeError

public static final int EncodeDecodeError
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

WSSecurityContextException

public WSSecurityContextException(int majorCode,
                                  int minorCode,
                                  java.lang.String minorString)
Deprecated. 
Creates a WSSecurityContextException object with the specified major code, minor code, and minor code textual explanation

Parameters:
majorCode - the major error code for the problem causing the error.
minorCode - the mechanism level error code for the problem causing this exception to be thrown.
minorString - the textual explanation of the mechanism error code.

WSSecurityContextException

public WSSecurityContextException(int majorCode,
                                  int minorCode,
                                  java.lang.String minorString,
                                  java.lang.Throwable t)
Deprecated. 
Method Detail

getMajor

public int getMajor()
Deprecated. 
Returns the WSSecurityContext level major error code for the problem causing this exception to be thrown.

Returns:
The int value of the major code.

getMinor

public int getMinor()
Deprecated. 
Returns the minor error code for the problem causing this exception to be thrown.

Returns:
The int value of the minor code.

getMinorString

public java.lang.String getMinorString()
Deprecated. Use getCause() to get the originating exception.

Returns the minor error string for the problem causing this exception to be thrown.

Returns:
The int value of the minor code.

toString

public java.lang.String toString()
Deprecated. 
Returns a textual representation of both the major and the minor status codes.

Overrides:
toString in class java.lang.Throwable
Returns:
a String with error descriptions.


 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.