public class GSSException extends Exception
| Modifier and Type | Field and Description | 
|---|---|
| static int | BAD_BINDINGSChannel bindings mismatch. | 
| static int | BAD_MECHUnsupported mechanism requested. | 
| static int | BAD_MICToken had invalid integrity check. | 
| static int | BAD_NAMEInvalid name provided. | 
| static int | BAD_NAMETYPEName of unsupported type provided. | 
| static int | BAD_QOPUnsupported QOP value. | 
| static int | BAD_STATUSInvalid status code. | 
| static int | CONTEXT_EXPIREDSecurity context expired. | 
| static int | CREDENTIALS_EXPIREDExpired credentials. | 
| static int | DEFECTIVE_CREDENTIALDefective credentials. | 
| static int | DEFECTIVE_TOKENDefective token. | 
| static int | DUPLICATE_ELEMENTDuplicate credential element requested. | 
| static int | DUPLICATE_TOKENThe token was a duplicate of an earlier token. | 
| static int | FAILUREGeneral failure, unspecified at GSS-API level. | 
| static int | GAP_TOKENAn expected per-message token was not received. | 
| static int | NAME_NOT_MNName contains multi-mechanism elements. | 
| static int | NO_CONTEXTInvalid security context. | 
| static int | NO_CREDInvalid credentials. | 
| static int | OLD_TOKENThe token's validity period has expired. | 
| static int | UNAUTHORIZEDOperation unauthorized. | 
| static int | UNAVAILABLEOperation unavailable. | 
| static int | UNSEQ_TOKENA later token has already been processed. | 
| Constructor and Description | 
|---|
| 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. | 
| Modifier and Type | Method and 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(int minorCode,
        String message)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, setStackTracepublic 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 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()
getMajorString(), 
getMinor(), 
getMinorString()public int getMinor()
getMinorString(), 
setMinor(int, java.lang.String)public String getMajorString()
getMajor(), 
toString()public String getMinorString()
getMinor(), 
getMajorString(), 
toString()public void setMinor(int minorCode,
                     String message)
minorCode - the mechanism specific error codemessage - textual explanation of the mechanism error codegetMinor()public String toString()
public String getMessage()
getMessage in class Throwable Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2017, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.