Save This Page
Home » openjdk-7 » org.ietf » jgss » [javadoc | source]
org.ietf.jgss
public class: MessageProp [javadoc | source]
java.lang.Object
   org.ietf.jgss.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.

Constructor:
 public MessageProp(boolean privState) 
 public MessageProp(int qop,
    boolean privState) 
Method from org.ietf.jgss.MessageProp Summary:
getMinorStatus,   getMinorString,   getPrivacy,   getQOP,   isDuplicateToken,   isGapToken,   isOldToken,   isUnseqToken,   setPrivacy,   setQOP,   setSupplementaryStates
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.ietf.jgss.MessageProp Detail:
 public int getMinorStatus() 
    Retrieves the minor status code that the underlying mechanism might have set for this per-message operation.
 public String getMinorString() 
    Retrieves a string explaining the minor status code.
 public boolean getPrivacy() 
    Retrieves the privacy state.
 public int getQOP() 
    Retrieves the QOP value.
 public boolean isDuplicateToken() 
    Tests if this is a duplicate of an earlier token.
 public boolean isGapToken() 
    Tests if an expected token was not received, i.e., one or more predecessor tokens have not yet been successfully processed.
 public boolean isOldToken() 
    Tests if this token's validity period has expired, i.e., the token is too old to be checked for duplication.
 public boolean isUnseqToken() 
    Tests if a later token had already been processed.
 public  void setPrivacy(boolean privState) 
    Sets the privacy state.
 public  void setQOP(int qop) 
    Sets the QOP value.
 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.