java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.ietf.jgss.GSSException
public class 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.
| Field Summary | |
|---|---|
static int |
BAD_BINDINGS
Channel bindings mismatch. |
static int |
BAD_MECH
Unsupported mechanism requested. |
static int |
BAD_MIC
Token had invalid integrity check. |
static int |
BAD_NAME
Invalid name provided. |
static int |
BAD_NAMETYPE
Name of unsupported type provided. |
static int |
BAD_QOP
Unsupported QOP value. |
static int |
BAD_STATUS
Invalid status code. |
static int |
CONTEXT_EXPIRED
Security context expired. |
static int |
CREDENTIALS_EXPIRED
Expired credentials. |
static int |
DEFECTIVE_CREDENTIAL
Defective credentials. |
static int |
DEFECTIVE_TOKEN
Defective token. |
static int |
DUPLICATE_ELEMENT
Duplicate credential element requested. |
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. |
static int |
NO_CONTEXT
Invalid security context. |
static int |
NO_CRED
Invalid credentials. |
static int |
OLD_TOKEN
The token's validity period has expired. |
static int |
UNAUTHORIZED
Operation unauthorized. |
static int |
UNAVAILABLE
Operation unavailable. |
static int |
UNSEQ_TOKEN
A later token has already been processed. |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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 ThrowableCes informations proviennent du site de http://java.sun.com
Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :
Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.
Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.
Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.
Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.
Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.
Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.
7 mots clés dont 0 définis manuellement (plus d'information...).
Avertissement
Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.
Recherche (afficher)
Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
Citation (masquer)