org.ietf.jgss

Class GSSException

  1. java.lang.Object
  2. extended byjava.lang.Throwable
  3. extended byjava.lang.Exception
  4. extended byorg.ietf.jgss.GSSException
All implemented interfaces:
java.io.Serializable

  1. public class GSSException
  2. extends java.lang.Exception
See Also:
Serialized Form

Field Summary

Modifier and Type Field and Description
  1. static
  2. int
BAD_BINDINGS
Channel bindings mismatch error.
  1. static
  2. int
BAD_MECH
Unsupported mechanism requested error.
  1. static
  2. int
BAD_MIC
Token had invalid integrity check error.
  1. static
  2. int
BAD_NAME
Invalid name provided error.
  1. static
  2. int
BAD_NAMETYPE
Name of unsupported type provided error.
  1. static
  2. int
BAD_QOP
Unsupported QOP value error.
  1. static
  2. int
BAD_STATUS
Invalid status code error - this is the default status value.
  1. static
  2. int
CONTEXT_EXPIRED
Specified security context expired error.
  1. static
  2. int
CREDENTIALS_EXPIRED
Expired credentials detected error.
  1. static
  2. int
DEFECTIVE_CREDENTIAL
Defective credential error.
  1. static
  2. int
DEFECTIVE_TOKEN
Defective token error.
  1. static
  2. int
DUPLICATE_ELEMENT
Duplicate credential element requested error.
  1. static
  2. int
DUPLICATE_TOKEN
The token was a duplicate of an earlier token.
  1. static
  2. int
FAILURE
General failure, unspecified at GSS-API level.
  1. static
  2. int
GAP_TOKEN
An expected per-message token was not received.
  1. static
  2. int
NAME_NOT_MN
Name contains multi-mechanism elements error.
  1. static
  2. int
NO_CONTEXT
Invalid security context error.
  1. static
  2. int
NO_CRED
Invalid credentials error.
  1. static
  2. int
OLD_TOKEN
The token's validity period has expired.
  1. static
  2. int
UNAUTHORIZED
Operation unauthorized error.
  1. static
  2. int
UNAVAILABLE
Operation unavailable error.
  1. static
  2. int
UNSEQ_TOKEN
A later token has already been processed.

Constructor Summary

Constructor and Description
GSSException(int major)
Creates a GSSException object with a specified major code.
GSSException(int major,int minor,java.lang.String minorMessage)
Creates a GSSException object with the specified major code, minor code, and minor code textual explanation.

Method Summary

Modifier and Type Method and Description
  1. int
getMajor()
Returns the major code representing the GSS error code that caused this exception to be thrown.
  1. java.lang.String
getMajorString()
Returns a string explaining the GSS major error code causing this exception to be thrown.
  1. java.lang.String
getMessage()
Returns a detailed internationalized message of this exception.
  1. int
getMinor()
Returns the mechanism error code that caused this exception.
  1. java.lang.String
getMinorString()
Returns a string explaining the mechanism specific error code.
  1. void
setMinor(int minor,java.lang.String msg)
Used internally by the GSS-API implementation and the underlying mechanisms to set the minor code and its textual representation.
  1. java.lang.String
toString()
Returns an internationalized textual representation of both the major and minor status codes.
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

BAD_BINDINGS

  1. public static final int BAD_BINDINGS
Channel bindings mismatch error.
See Also:

BAD_MECH

  1. public static final int BAD_MECH
Unsupported mechanism requested error.
See Also:

BAD_NAME

  1. public static final int BAD_NAME
Invalid name provided error.
See Also:

BAD_NAMETYPE

  1. public static final int BAD_NAMETYPE
Name of unsupported type provided error.
See Also:

BAD_STATUS

  1. public static final int BAD_STATUS
Invalid status code error - this is the default status value.
See Also:

BAD_MIC

  1. public static final int BAD_MIC
Token had invalid integrity check error.
See Also:

CONTEXT_EXPIRED

  1. public static final int CONTEXT_EXPIRED
Specified security context expired error.
See Also:

CREDENTIALS_EXPIRED

  1. public static final int CREDENTIALS_EXPIRED
Expired credentials detected error.
See Also:

DEFECTIVE_CREDENTIAL

  1. public static final int DEFECTIVE_CREDENTIAL
Defective credential error.
See Also:

DEFECTIVE_TOKEN

  1. public static final int DEFECTIVE_TOKEN
Defective token error.
See Also:

FAILURE

  1. public static final int FAILURE
General failure, unspecified at GSS-API level.
See Also:

NO_CONTEXT

  1. public static final int NO_CONTEXT
Invalid security context error.
See Also:

NO_CRED

  1. public static final int NO_CRED
Invalid credentials error.
See Also:

BAD_QOP

  1. public static final int BAD_QOP
Unsupported QOP value error.
See Also:

UNAUTHORIZED

  1. public static final int UNAUTHORIZED
Operation unauthorized error.
See Also:

UNAVAILABLE

  1. public static final int UNAVAILABLE
Operation unavailable error.
See Also:

DUPLICATE_ELEMENT

  1. public static final int DUPLICATE_ELEMENT
Duplicate credential element requested error.
See Also:

NAME_NOT_MN

  1. public static final int NAME_NOT_MN
Name contains multi-mechanism elements error.
See Also:

DUPLICATE_TOKEN

  1. public static final int DUPLICATE_TOKEN
The token was a duplicate of an earlier token. This is a fatal error code that may occur during context establishment. It is not used to indicate supplementary status values. The MessageProp object is used for that purpose.
See Also:

OLD_TOKEN

  1. public static final int OLD_TOKEN
The token's validity period has expired. This is a fatal error code that may occur during context establishment. It is not used to indicate supplementary status values. The MessageProp object is used for that purpose.
See Also:

UNSEQ_TOKEN

  1. public static final int UNSEQ_TOKEN
A later token has already been processed. This is a fatal error code that may occur during context establishment. It is not used to indicate supplementary status values. The MessageProp object is used for that purpose.
See Also:

GAP_TOKEN

  1. public static final int GAP_TOKEN
An expected per-message token was not received. This is a fatal error code that may occur during context establishment. It is not used to indicate supplementary status values. The MessageProp object is used for that purpose.
See Also:

Constructor Detail

GSSException

  1. public GSSException(int major)
Creates a GSSException object with a specified major code.
Parameters:
major - The GSS error code causing this exception to be thrown.

GSSException

  1. public GSSException(int major,
  2. int minor,
  3. java.lang.String minorMessage)
Creates a GSSException object with the specified major code, minor code, and minor code textual explanation. This constructor is to be used when the exception is originating from the security mechanism. It allows to specify the GSS code and the mechanism code.
Parameters:
major - The GSS error code causing this exception to be thrown.
minor - The mechanism error code causing this exception to be thrown.

Method Detail

getMajor

  1. public int getMajor()
Returns the major code representing the GSS error code that caused this exception to be thrown.
Returns:
The major error code.

getMinor

  1. public int getMinor()
Returns the mechanism error code that caused this exception. The minor code is set by the underlying mechanism. Value of 0 indicates that mechanism error code is not set.
Returns:
The minor error code.

getMajorString

  1. public java.lang.String getMajorString( )
Returns a string explaining the GSS major error code causing this exception to be thrown.
Returns:
A string explaining the major error code of this exception.

getMinorString

  1. public java.lang.String getMinorString( )
Returns a string explaining the mechanism specific error code. null will be returned when no mechanism error code has been set.
Returns:
A string explaining the minor (ie, mechanism-specific) error of this exception.

setMinor

  1. public void setMinor(int minor,
  2. java.lang.String msg)
Used internally by the GSS-API implementation and the underlying mechanisms to set the minor code and its textual representation.
Parameters:
minor - The mechanism specific error code.

toString

  1. public java.lang.String toString( )
Returns an internationalized textual representation of both the major and minor status codes.
Overrides:
toString in class java.lang.Throwable
Returns:
textual representation of both major and minor status codes.

getMessage

  1. public java.lang.String getMessage( )
Returns a detailed internationalized message of this exception. Overrides Throwable.getMessage. It is customary in Java to use this method to obtain exception information.
Overrides:
getMessage in class java.lang.Throwable
Returns:
detailed message about this exception.