com.sun.gssapi
public class GSSException extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
static int |
BAD_BINDINGS
Channel bindings mismatch error.
|
static int |
BAD_MECH
Unsupported mechanism requested error.
|
static int |
BAD_MIC
Token had invalid integrity check error.
|
static int |
BAD_NAME
Invalid name provided error.
|
static int |
BAD_NAMETYPE
Name of unsupported type provided error.
|
static int |
BAD_QOP
Unsupported QOP value error.
|
static int |
BAD_STATUS
Invalid status code error - this is the default status value.
|
static int |
CONTEXT_EXPIRED
Specified security context expired error.
|
static int |
CREDENTIALS_EXPIRED
Expired credentials detected error.
|
static int |
DEFECTIVE_CREDENTIAL
Defective credential error.
|
static int |
DEFECTIVE_TOKEN
Defective token error.
|
static int |
DUPLICATE_ELEMENT
Duplicate credential element requested error.
|
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 error.
|
static int |
NO_CONTEXT
Invalid security context error.
|
static int |
NO_CRED
Invalid credentials error.
|
static int |
OLD_TOKEN
The token's validity period has expired.
|
static int |
UNAUTHORIZED
Operation unauthorized error.
|
static int |
UNAVAILABLE
Operation unavailable error.
|
static int |
UNSEQ_TOKEN
A later token has already been processed.
|
Constructor and Description |
---|
GSSException(int majorCode)
Construct a GSSException object with a specified major code.
|
GSSException(int majorCode,
int minorCode,
java.lang.String minorString)
Construct a GSSException object with a specified major and
minor codes and minor explanation string.
|
Modifier and Type | Method and Description |
---|---|
int |
getMajor()
Returns the major code representing the error that caused this
exception to be thrown.
|
java.lang.String |
getMajorString()
Returns a string explaining the major code in this exception.
|
java.lang.String |
getMessage()
Returns string representing both the major and minor status
codes.
|
int |
getMinor()
Returns the mechanism error that caused this exception.
|
java.lang.String |
getMinorString()
Returns a string explaining the mechanism specific error code.
|
void |
setMinor(int minorCode,
java.lang.String message)
Used by the exception thrower to set the mechanism error code
and its string explanation.
|
java.lang.String |
toString()
Returns string representing both the major and minor status
codes.
|
public static final int BAD_BINDINGS
public static final int BAD_MECH
public static final int BAD_NAME
public static final int BAD_NAMETYPE
public static final int BAD_STATUS
public static final int BAD_MIC
public static final int CONTEXT_EXPIRED
public static final int CREDENTIALS_EXPIRED
public static final int DEFECTIVE_CREDENTIAL
public static final int DEFECTIVE_TOKEN
public static final int FAILURE
public static final int NO_CONTEXT
public static final int NO_CRED
public static final int BAD_QOP
public static final int UNAUTHORIZED
public static final int UNAVAILABLE
public static final int DUPLICATE_ELEMENT
public static final int NAME_NOT_MN
public static final int DUPLICATE_TOKEN
public static final int OLD_TOKEN
public static final int UNSEQ_TOKEN
public static final int GAP_TOKEN
public GSSException(int majorCode)
majorCode
- the fatal error code causing this exception.
This value should be one of the ones defined in this
class. Invalid error codes get mapped to BAD_STATUS value.public GSSException(int majorCode, int minorCode, java.lang.String minorString)
majorCode
- the fatal error code causing this exception.
This value should be one of the ones defined in this class.
Invalid error codes get mapped to BAD_STATUS value.minorCode
- the mechanism specific error code.minorString
- explanation of the minorCode.public int getMajor()
getMajorString()
public int getMinor()
setMinor(int, java.lang.String)
,
getMinorString()
public java.lang.String getMajorString()
getMajor()
,
toString()
public java.lang.String getMinorString()
getMinor()
,
getMajorString()
,
toString()
public void setMinor(int minorCode, java.lang.String message)
minorCode
- the mechanism specific error codemessage
- textual explanation of the mechanism error codepublic java.lang.String toString()
toString
in class java.lang.Throwable
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable