Serializable
public class GSSException extends Exception
Modifier and Type | Field | Description |
---|---|---|
static final int |
BAD_BINDINGS |
Channel bindings mismatch. |
static final int |
BAD_MECH |
Unsupported mechanism requested. |
static final int |
BAD_MIC |
Token had invalid integrity check. |
static final int |
BAD_NAME |
Invalid name provided. |
static final int |
BAD_NAMETYPE |
Name of unsupported type provided. |
static final int |
BAD_QOP |
Unsupported QOP value. |
static final int |
BAD_STATUS |
Invalid status code. |
static final int |
CONTEXT_EXPIRED |
Security context expired. |
static final int |
CREDENTIALS_EXPIRED |
Expired credentials. |
static final int |
DEFECTIVE_CREDENTIAL |
Defective credentials. |
static final int |
DEFECTIVE_TOKEN |
Defective token. |
static final int |
DUPLICATE_ELEMENT |
Duplicate credential element requested. |
static final int |
DUPLICATE_TOKEN |
The token was a duplicate of an earlier token. |
static final int |
FAILURE |
General failure, unspecified at GSS-API level. |
static final int |
GAP_TOKEN |
An expected per-message token was not received. |
static final int |
NAME_NOT_MN |
Name contains multi-mechanism elements. |
static final int |
NO_CONTEXT |
Invalid security context. |
static final int |
NO_CRED |
Invalid credentials. |
static final int |
OLD_TOKEN |
The token's validity period has expired. |
static final int |
UNAUTHORIZED |
Operation unauthorized. |
static final int |
UNAVAILABLE |
Operation unavailable. |
static final int |
UNSEQ_TOKEN |
A later token has already been processed. |
Constructor | Description |
---|---|
GSSException |
Creates a GSSException object with a specified major code. |
GSSException |
Creates a GSSException object with the specified major code, minor code, and minor code textual explanation. |
Modifier and Type | Method | Description |
---|---|---|
int |
getMajor() |
Returns the GSS-API level major error code for the problem causing this exception to be thrown. |
String |
getMajorString() |
Returns a string explaining the GSS-API level major error code in this exception. |
String |
getMessage() |
Returns a textual representation of both the major and the minor status codes. |
int |
getMinor() |
Returns the mechanism level error code for the problem causing this exception to be thrown. |
String |
getMinorString() |
Returns a string explaining the mechanism specific error code. |
void |
setMinor |
Used by the exception thrower to set the mechanism level minor error code and its string explanation. |
String |
toString() |
Returns a textual representation of both the major and the minor status codes. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
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 GSS error code for the problem causing this exception to be thrown.public GSSException(int majorCode, int minorCode, String minorString)
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.public int getMajor()
public int getMinor()
public String getMajorString()
public String getMinorString()
public void setMinor(int minorCode, String message)
minorCode
- the mechanism specific error codemessage
- textual explanation of the mechanism error codepublic String toString()
public String getMessage()
getMessage
in class Throwable
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.security.jgss/org/ietf/jgss/GSSException.html