This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


org.ietf.jgss
class MessageProp

java.lang.Object extended by org.ietf.jgss.MessageProp

Most common way to construct:

MessageProp prop = new MessageProp(0, true);

Based on 79 examples


public class MessageProp
extends Object

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.


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

          Retrieves the minor status code that the underlying mechanism might have set for this per-message operation.
 String

          Retrieves a string explaining the minor status code.
 boolean

          Retrieves the privacy state.
 int

          Retrieves the QOP value.
 boolean

          Tests if this is a duplicate of an earlier token.
 boolean

          Tests if an expected token was not received, i.e., one or more predecessor tokens have not yet been successfully processed.
 boolean

          Tests if this token's validity period has expired, i.e., the token is too old to be checked for duplication.
 boolean

          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

MessageProp

public MessageProp(boolean privState)
Constructor which sets the desired privacy state. The QOP value used is 0.

Parameters:
privState - the privacy (i.e. confidentiality) state

MessageProp

public MessageProp(int qop,
                   boolean privState)
Constructor which sets the values for the qop and privacy state.

Parameters:
qop - the QOP value
privState - the privacy (i.e. confidentiality) state
Method Detail

getMinorStatus

public int getMinorStatus()
Retrieves the minor status code that the underlying mechanism might have set for this per-message operation.

Returns:
the int minor status

getMinorString

public String getMinorString()
Retrieves a string explaining the minor status code.

Returns:
a String corresponding to the minor status code. null will be returned when no minor status code has been set.

getPrivacy

public boolean getPrivacy()
Retrieves the privacy state.

Returns:
true if the privacy (i.e., confidentiality) state is true, false otherwise.

getQOP

public int getQOP()
Retrieves the QOP value.

Returns:
an int representing the QOP value

isDuplicateToken

public boolean isDuplicateToken()
Tests if this is a duplicate of an earlier token.

Returns:
true if this is a duplicate, false otherwise.

isGapToken

public boolean isGapToken()
Tests if an expected token was not received, i.e., one or more predecessor tokens have not yet been successfully processed.

Returns:
true if an expected per-message token was not received, false otherwise.

isOldToken

public boolean isOldToken()
Tests if this token's validity period has expired, i.e., the token is too old to be checked for duplication.

Returns:
true if the token's validity period has expired, false otherwise.

isUnseqToken

public boolean isUnseqToken()
Tests if a later token had already been processed.

Returns:
true if a later token had already been processed, false otherwise.

setPrivacy

public void setPrivacy(boolean privState)
Sets the privacy state.

Parameters:
privState - true is the privacy (i.e., confidentiality) state is true, false otherwise.

setQOP

public void setQOP(int qop)
Sets the QOP value.

Parameters:
qop - the int value to set the QOP to

setSupplementaryStates

public 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. It is not used by the application but by the GSS implementation to return this information to the caller of a per-message context method.

Parameters:
duplicate - true if the token was a duplicate of an earlier token, false otherwise
old - true if the token's validity period has expired, false otherwise
unseq - true if a later token has already been processed, false otherwise
gap - true if one or more predecessor tokens have not yet been successfully processed, false otherwise
minorStatus - the int minor status code for the per-message operation
minorString - the textual representation of the minorStatus value


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.