Fields Summary |
---|
private static final long | serialVersionUID |
public static final int | BAD_BINDINGSChannel bindings mismatch. |
public static final int | BAD_MECHUnsupported mechanism requested. |
public static final int | BAD_NAMEInvalid name provided. |
public static final int | BAD_NAMETYPEName of unsupported type provided. |
public static final int | BAD_STATUSInvalid status code. |
public static final int | BAD_MICToken had invalid integrity check. |
public static final int | CONTEXT_EXPIREDSecurity context expired. |
public static final int | CREDENTIALS_EXPIREDExpired credentials. |
public static final int | DEFECTIVE_CREDENTIALDefective credentials. |
public static final int | DEFECTIVE_TOKENDefective token. |
public static final int | FAILUREGeneral failure, unspecified at GSS-API level. |
public static final int | NO_CONTEXTInvalid security context. |
public static final int | NO_CREDInvalid credentials. |
public static final int | BAD_QOPUnsupported QOP value. |
public static final int | UNAUTHORIZEDOperation unauthorized. |
public static final int | UNAVAILABLEOperation unavailable. |
public static final int | DUPLICATE_ELEMENTDuplicate credential element requested. |
public static final int | NAME_NOT_MNName contains multi-mechanism elements. |
public static final int | DUPLICATE_TOKENThe 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. |
public static final int | OLD_TOKENThe 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. |
public static final int | UNSEQ_TOKENA 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. |
public static final int | GAP_TOKENAn 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. |
private static String[] | messages |
private int | majorThe major code for this exception |
private int | minorThe minor code for this exception |
private String | minorMessageThe text string for minor code |
private String | majorStringAlternate text string for major code |
Methods Summary |
---|
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.
return major;
|
public java.lang.String | getMajorString()Returns a string explaining the GSS-API level major error code in
this exception.
if (majorString != null)
return majorString;
else
return messages[major - 1];
|
public java.lang.String | getMessage()Returns a textual representation of both the major and the minor
status codes.
if (minor == 0)
return (getMajorString());
return (getMajorString()
+ " (Mechanism level: " + getMinorString() + ")");
|
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.
return minor;
|
public java.lang.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.
return minorMessage;
|
public void | setMinor(int minorCode, java.lang.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.
minor = minorCode;
minorMessage = message;
|
public java.lang.String | toString()Returns a textual representation of both the major and the minor
status codes.
return ("GSSException: " + getMessage());
|
private boolean | validateMajor(int major)
if (major > 0 && major <= messages.length)
return (true);
return (false);
|