API java : GSSException


org.ietf.jgss
Class GSSException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.ietf.jgss.GSSException
All Implemented Interfaces:
Serializable

public class GSSException
extends Exception

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.

Since:
1.4
See Also:
Serialized Form

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

BAD_BINDINGS

public static final int BAD_BINDINGS
Channel bindings mismatch.

See Also:
Constant Field Values

BAD_MECH

public static final int BAD_MECH
Unsupported mechanism requested.

See Also:
Constant Field Values

BAD_NAME

public static final int BAD_NAME
Invalid name provided.

See Also:
Constant Field Values

BAD_NAMETYPE

public static final int BAD_NAMETYPE
Name of unsupported type provided.

See Also:
Constant Field Values

BAD_STATUS

public static final int BAD_STATUS
Invalid status code.

See Also:
Constant Field Values

BAD_MIC

public static final int BAD_MIC
Token had invalid integrity check.

See Also:
Constant Field Values

CONTEXT_EXPIRED

public static final int CONTEXT_EXPIRED
Security context expired.

See Also:
Constant Field Values

CREDENTIALS_EXPIRED

public static final int CREDENTIALS_EXPIRED
Expired credentials.

See Also:
Constant Field Values

DEFECTIVE_CREDENTIAL

public static final int DEFECTIVE_CREDENTIAL
Defective credentials.

See Also:
Constant Field Values

DEFECTIVE_TOKEN

public static final int DEFECTIVE_TOKEN
Defective token.

See Also:
Constant Field Values

FAILURE

public static final int FAILURE
General failure, unspecified at GSS-API level.

See Also:
Constant Field Values

NO_CONTEXT

public static final int NO_CONTEXT
Invalid security context.

See Also:
Constant Field Values

NO_CRED

public static final int NO_CRED
Invalid credentials.

See Also:
Constant Field Values

BAD_QOP

public static final int BAD_QOP
Unsupported QOP value.

See Also:
Constant Field Values

UNAUTHORIZED

public static final int UNAUTHORIZED
Operation unauthorized.

See Also:
Constant Field Values

UNAVAILABLE

public static final int UNAVAILABLE
Operation unavailable.

See Also:
Constant Field Values

DUPLICATE_ELEMENT

public static final int DUPLICATE_ELEMENT
Duplicate credential element requested.

See Also:
Constant Field Values

NAME_NOT_MN

public static final int NAME_NOT_MN
Name contains multi-mechanism elements.

See Also:
Constant Field Values

DUPLICATE_TOKEN

public static final int DUPLICATE_TOKEN
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.

See Also:
Constant Field Values

OLD_TOKEN

public static final int OLD_TOKEN
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.

See Also:
Constant Field Values

UNSEQ_TOKEN

public static final int UNSEQ_TOKEN
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.

See Also:
Constant Field Values

GAP_TOKEN

public static final int GAP_TOKEN
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.

See Also:
Constant Field Values
Constructor Detail

GSSException

public GSSException(int majorCode)
Creates a GSSException object with a specified major code.

Parameters:
majorCode - the The GSS error code for the problem causing this exception to be thrown.

GSSException

public GSSException(int majorCode,
                    int minorCode,
                    String minorString)
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.

Parameters:
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

getMajor

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.

Returns:
int the GSS-API level major error code causing this exception
See Also:
getMajorString(), getMinor(), getMinorString()

getMinor

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.

Returns:
int the mechanism error code; 0 indicates that it has not been set.
See Also:
getMinorString(), setMinor(int, java.lang.String)

getMajorString

public String getMajorString()
Returns a string explaining the GSS-API level major error code in this exception.

Returns:
String explanation string for the major error code
See Also:
getMajor(), toString()

getMinorString

public 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.

Returns:
String a textual explanation of mechanism error code
See Also:
getMinor(), getMajorString(), toString()

setMinor

public void setMinor(int minorCode,
                     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.

Parameters:
minorCode - the mechanism specific error code
message - textual explanation of the mechanism error code
See Also:
getMinor()

toString

public String toString()
Returns a textual representation of both the major and the minor status codes.

Overrides:
toString in class Throwable
Returns:
a String with the error descriptions

getMessage

public String getMessage()
Returns a textual representation of both the major and the minor status codes.

Overrides:
getMessage in class Throwable
Returns:
a String with the error descriptions

Ces informations proviennent du site de http://java.sun.com

Remarques

Contenu

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 :

Quels sont les motivations de cette démarche?

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.

Réseaux sociaux

Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.

 

Nuage de mots clés

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.

 

Astuce pour imprimer les couleurs des cellules de tableaux : http://www.gaudry.be/ast-rf-450.html
Aucun commentaire pour cette page

© Ce document issu de l′infobrol est enregistré sous le certificat Cyber PrInterDeposit Digital Numbertection. Enregistrement IDDN n° 5329-1964
Document créé le 31/08/06 01:24, dernière modification le Vendredi 17 Juin 2011, 12:12
Source du document imprimé : http://www.gaudry.be/java-api-rf-org/ietf/jgss/GSSException.html Document affiché 1 fois ce mois de Juin.
St.Gaudry©07.01.02
Outils (masquer)
||
Recherche (afficher)
Recherche :

Utilisateur (masquer)
Apparence (afficher)
Stats (afficher)
15832 documents
452 astuces.
549 niouzes.
3099 definitions.
447 membres.
8115 messages.

Document genere en :
0,64 seconde

Mises à jour :
Mises à jour du site
Citation (masquer)
Comment définir le réel ? Ce que tu ressens, vois, goûte ou respire, ne sont rien que des impulsions électriques interprétées par ton cerveau.

Andy Wachowski [Extrait du film Matrix]
 
l'infobrol
Nous sommes le Samedi 02 Juin 2012, 09:35, toutes les heures sont au format GMT+1.00 Heure, heure d'été (+1)