This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


org.ietf.jgss
exception GSSException

java.lang.Object extended by java.lang.Throwable extended by java.lang.Exception extended by org.ietf.jgss.GSSException
All Implemented Interfaces:
Serializable

public exception GSSException
extends Exception

This exception is thrown whenever a GSS-API error occurs, including any mechanism specific error. It may contain both the major and the minor GSS-API status codes. Major error codes are those defined at the GSS-API level in this class. Minor error codes are mechanism specific error codes that can provide additional information. The underlying mechanism implementation is responsible for setting appropriate minor status codes when throwing this exception. Aside from delivering the numeric error codes to the caller, this class performs the mapping from their numeric values to textual representations.


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

          Creates a GSSException object with a specified major code.
GSSException(int majorCode, int minorCode, String minorString)

          Creates a GSSException object with the specified major code, minor code, and minor code textual explanation.
 
Method Summary
 int

          Returns the GSS-API level major error code for the problem causing this exception to be thrown.
 String

          Returns a string explaining the GSS-API level major error code in this exception.
 String

          Returns a textual representation of both the major and the minor status codes.
 int

          Returns the mechanism level error code for the problem causing this exception to be thrown.
 String

          Returns a string explaining the mechanism specific error code.
 void
setMinor(int minorCode, String message)

          Used by the exception thrower to set the mechanism level minor error code and its string explanation.
 String

          Returns a textual representation of both the major and the minor status codes.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BAD_BINDINGS

public static final int BAD_BINDINGS
Channel bindings mismatch.

BAD_MECH

public static final int BAD_MECH
Unsupported mechanism requested.

BAD_MIC

public static final int BAD_MIC
Token had invalid integrity check.

BAD_NAME

public static final int BAD_NAME
Invalid name provided.

BAD_NAMETYPE

public static final int BAD_NAMETYPE
Name of unsupported type provided.

BAD_QOP

public static final int BAD_QOP
Unsupported QOP value.

BAD_STATUS

public static final int BAD_STATUS
Invalid status code.

CONTEXT_EXPIRED

public static final int CONTEXT_EXPIRED
Security context expired.

CREDENTIALS_EXPIRED

public static final int CREDENTIALS_EXPIRED
Expired credentials.

DEFECTIVE_CREDENTIAL

public static final int DEFECTIVE_CREDENTIAL
Defective credentials.

DEFECTIVE_TOKEN

public static final int DEFECTIVE_TOKEN
Defective token.

DUPLICATE_ELEMENT

public static final int DUPLICATE_ELEMENT
Duplicate credential element requested.

DUPLICATE_TOKEN

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.

FAILURE

public static final int FAILURE
General failure, unspecified at GSS-API level.

GAP_TOKEN

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.

NAME_NOT_MN

public static final int NAME_NOT_MN
Name contains multi-mechanism elements.

NO_CONTEXT

public static final int NO_CONTEXT
Invalid security context.

NO_CRED

public static final int NO_CRED
Invalid credentials.

OLD_TOKEN

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.

UNAUTHORIZED

public static final int UNAUTHORIZED
Operation unauthorized.

UNAVAILABLE

public static final int UNAVAILABLE
Operation unavailable.

UNSEQ_TOKEN

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.
Constructor Detail

GSSException

public GSSException(int majorCode)
Creates a GSSException object with a specified major code.

Parameters:
majorCode - the The GSS error code for the problem causing this exception to be thrown.

GSSException

public GSSException(int majorCode,
                    int minorCode,
                    String minorString)
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 underlying mechanism level. It allows the setting of both the GSS code and the mechanism code.

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

getMajor

public int getMajor()
Returns the GSS-API level major error code for the problem causing this exception to be thrown. Major error codes are defined at the mechanism independent GSS-API level in this class. Mechanism specific error codes that might provide more information aer set as the minor error code.

Returns:
int the GSS-API level major error code causing this exception

getMajorString

public String getMajorString()
Returns a string explaining the GSS-API level major error code in this exception.

Returns:
String explanation string for the major error code

getMessage

public String getMessage()
Returns a textual representation of both the major and the minor status codes.

Overrides:
getMessage in class Throwable
Returns:
a String with the error descriptions

getMinor

public int getMinor()
Returns the mechanism level error code for the problem causing this exception to be thrown. The minor code is set by the underlying mechanism.

Returns:
int the mechanism error code; 0 indicates that it has not been set.

getMinorString

public String getMinorString()
Returns a string explaining the mechanism specific error code. If the minor status code is 0, then no mechanism level error details will be available.

Returns:
String a textual explanation of mechanism error code

setMinor

public void setMinor(int minorCode,
                     String message)
Used by the exception thrower to set the mechanism level minor error code and its string explanation. This is used by mechanism providers to indicate error details.

Parameters:
minorCode - the mechanism specific error code
message - textual explanation of the mechanism error code

toString

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

Overrides:
toString in class Throwable
Returns:
a String with the error descriptions


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.