java.lang.Objectorg.ietf.jgss.MessageProp
public class MessageProp
This is a utility class used within the per-message GSSContext methods to convey per-message properties.
When used with the GSSContext interface's wrap and getMIC methods, an instance of this class is used to indicate the desired Quality-of-Protection (QOP) and to request if confidentiality services are to be applied to caller supplied data (wrap only). To request default QOP, the value of 0 should be used for QOP.
When used with the unwrap and verifyMIC methods of the GSSContext
interface, an instance of this class will be used to indicate the
applied QOP and confidentiality services over the supplied message.
In the case of verifyMIC, the confidentiality state will always be
false. Upon return from these methods, this object will also
contain any supplementary status values applicable to the processed
token. The supplementary status values can indicate old tokens, out
of sequence tokens, gap tokens or duplicate tokens.
GSSContext.wrap(byte[], int, int, org.ietf.jgss.MessageProp),
GSSContext.unwrap(byte[], int, int, org.ietf.jgss.MessageProp),
GSSContext.getMIC(byte[], int, int, org.ietf.jgss.MessageProp),
GSSContext.verifyMIC(byte[], int, int, byte[], int, int, org.ietf.jgss.MessageProp)| Constructor Summary | |
|---|---|
MessageProp(boolean privState)
Constructor which sets the desired privacy state. |
|
MessageProp(int qop,
boolean privState)
Constructor which sets the values for the qop and privacy state. |
|
| Method Summary | |
|---|---|
int |
getMinorStatus()
Retrieves the minor status code that the underlying mechanism might have set for this per-message operation. |
String |
getMinorString()
Retrieves a string explaining the minor status code. |
boolean |
getPrivacy()
Retrieves the privacy state. |
int |
getQOP()
Retrieves the QOP value. |
boolean |
isDuplicateToken()
Tests if this is a duplicate of an earlier token. |
boolean |
isGapToken()
Tests if an expected token was not received, i.e., one or more predecessor tokens have not yet been successfully processed. |
boolean |
isOldToken()
Tests if this token's validity period has expired, i.e., the token is too old to be checked for duplication. |
boolean |
isUnseqToken()
Tests if a later token had already been processed. |
void |
setPrivacy(boolean privState)
Sets the privacy state. |
void |
setQOP(int qop)
Sets the QOP value. |
void |
setSupplementaryStates(boolean duplicate,
boolean old,
boolean unseq,
boolean gap,
int minorStatus,
String minorString)
This method sets the state for the supplementary information flags and the minor status in MessageProp. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageProp(boolean privState)
privState - the privacy (i.e. confidentiality) state
public MessageProp(int qop,
boolean privState)
qop - the QOP valueprivState - the privacy (i.e. confidentiality) state| Method Detail |
|---|
public int getQOP()
setQOP(int)public boolean getPrivacy()
setPrivacy(boolean)public void setQOP(int qop)
qop - the int value to set the QOP togetQOP()public void setPrivacy(boolean privState)
privState - true is the privacy (i.e., confidentiality) state
is true, false otherwise.getPrivacy()public boolean isDuplicateToken()
public boolean isOldToken()
public boolean isUnseqToken()
public boolean isGapToken()
public int getMinorStatus()
public String getMinorString()
null will be returned when no minor status code
has been set.
public void setSupplementaryStates(boolean duplicate,
boolean old,
boolean unseq,
boolean gap,
int minorStatus,
String minorString)
duplicate - true if the token was a duplicate of an earlier
token, false otherwiseold - true if the token's validity period has expired, false
otherwiseunseq - true if a later token has already been processed, false
otherwisegap - true if one or more predecessor tokens have not yet been
successfully processed, false otherwiseminorStatus - the int minor status code for the per-message
operationminorString - the textual representation of the minorStatus valueCes 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)