java.lang.Object | |||
↳ | java.lang.Throwable | ||
↳ | java.lang.Exception | ||
↳ | org.ietf.jgss.GSSException |
![]() |
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.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | BAD_BINDINGS | Channel bindings mismatch. | |||||||||
int | BAD_MECH | Unsupported mechanism requested. | |||||||||
int | BAD_MIC | Token had invalid integrity check. | |||||||||
int | BAD_NAME | Invalid name provided. | |||||||||
int | BAD_NAMETYPE | Name of unsupported type provided. | |||||||||
int | BAD_QOP | Unsupported QOP value. | |||||||||
int | BAD_STATUS | Invalid status code. | |||||||||
int | CONTEXT_EXPIRED | Security context expired. | |||||||||
int | CREDENTIALS_EXPIRED | Expired credentials. | |||||||||
int | DEFECTIVE_CREDENTIAL | Defective credentials. | |||||||||
int | DEFECTIVE_TOKEN | Defective token. | |||||||||
int | DUPLICATE_ELEMENT | Duplicate credential element requested. | |||||||||
int | DUPLICATE_TOKEN | The token was a duplicate of an earlier token. | |||||||||
int | FAILURE | General failure, unspecified at GSS-API level. | |||||||||
int | GAP_TOKEN | An expected per-message token was not received. | |||||||||
int | NAME_NOT_MN | Name contains multi-mechanism elements. | |||||||||
int | NO_CONTEXT | Invalid security context. | |||||||||
int | NO_CRED | Invalid credentials. | |||||||||
int | OLD_TOKEN | The token's validity period has expired. | |||||||||
int | UNAUTHORIZED | Operation unauthorized. | |||||||||
int | UNAVAILABLE | Operation unavailable. | |||||||||
int | UNSEQ_TOKEN | A later token has already been processed. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a GSSException object with a specified major code.
| |||||||||||
Creates a GSSException object with the specified major code, minor
code, and minor code textual explanation.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the GSS-API level major error code for the problem causing
this exception to be thrown.
| |||||||||||
Returns a string explaining the GSS-API level major error code in
this exception.
| |||||||||||
Returns a textual representation of both the major and the minor
status codes.
| |||||||||||
Returns the mechanism level error code for the problem causing this
exception to be thrown.
| |||||||||||
Returns a string explaining the mechanism specific error code.
| |||||||||||
Used by the exception thrower to set the mechanism
level minor error code and its string explanation.
| |||||||||||
Returns a textual representation of both the major and the minor
status codes.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Channel bindings mismatch.
Unsupported mechanism requested.
Token had invalid integrity check.
Invalid name provided.
Name of unsupported type provided.
Unsupported QOP value.
Invalid status code.
Security context expired.
Expired credentials.
Defective credentials.
Defective token.
Duplicate credential element requested.
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.
General failure, unspecified at GSS-API level.
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 contains multi-mechanism elements.
Invalid security context.
Invalid credentials.
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.
Operation unauthorized.
Operation unavailable.
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.
Creates a GSSException object with a specified major code.
majorCode | the The GSS error code for the problem causing this exception to be thrown. |
---|
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.
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. |
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 a string explaining the GSS-API level major error code in this exception.
Returns a textual representation of both the major and the minor status codes.
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 a string explaining the mechanism specific error code. If the minor status code is 0, then no mechanism level error details will be available.
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.
minorCode | the mechanism specific error code |
---|---|
message | textual explanation of the mechanism error code |
Returns a textual representation of both the major and the minor status codes.