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, GSSContext#unwrap, GSSContext#getMIC, GSSContext#verifyMIC
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private int | |
| private String | |
| private boolean | |
| private boolean | |
| private int | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | MessageProp(boolean
the privacy (i.e. confidentiality) state privState)Constructor which sets the desired privacy state. |
| public | MessageProp(int
the QOP value qop, boolean the privacy (i.e. confidentiality) state privState)Constructor which sets the values for the qop and privacy state. |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the int minor statusRetrieves the minor status code that the underlying mechanism might have set for this per-message operation. |
| public String | Returns: a String corresponding to the minor status code.null will be returned when no minor status code
has been set.Retrieves a string explaining the minor status code. |
| public boolean | Returns: true if the privacy (i.e., confidentiality) state is true, false otherwise.Retrieves the privacy state. |
| public int | |
| public boolean | Returns: true if this is a duplicate, false otherwise.Tests if this is a duplicate of an earlier token. |
| public boolean | Returns: true if an expected per-message token was not received, false otherwise.Tests if an expected token was not received, i.e., one or more predecessor tokens have not yet been successfully processed. |
| public boolean | Returns: true if the token's validity period has expired, false otherwise.Tests if this token's validity period has expired, i.e., the token is too old to be checked for duplication. |
| public boolean | Returns: true if a later token had already been processed, false otherwise.Tests if a later token had already been processed. |
| private void | |
| public void | setPrivacy(boolean
true is the privacy (i.e., confidentiality) state
is true, false otherwise. privState)Sets the privacy state. |
| public void | |
| public void | setSupplementaryStates(boolean
true if the token was a duplicate of an earlier
token, false otherwise duplicate, boolean true if the token's validity period has expired, false
otherwise old, boolean true if a later token has already been processed, false
otherwise unseq, boolean true if one or more predecessor tokens have not yet been
successfully processed, false otherwise gap, int the int minor status code for the per-message
operation minorStatus, String the textual representation of the minorStatus value minorString)This method sets the state for the supplementary information flags and the minor status in MessageProp. |
| dupToken | back to summary |
|---|---|
| private boolean dupToken | |
| gapToken | back to summary |
|---|---|
| private boolean gapToken | |
| minorStatus | back to summary |
|---|---|
| private int minorStatus | |
| minorString | back to summary |
|---|---|
| private String minorString | |
| oldToken | back to summary |
|---|---|
| private boolean oldToken | |
| privacyState | back to summary |
|---|---|
| private boolean privacyState | |
| qop | back to summary |
|---|---|
| private int qop | |
| unseqToken | back to summary |
|---|---|
| private boolean unseqToken | |
| MessageProp | back to summary |
|---|---|
| public MessageProp(boolean privState) Constructor which sets the desired privacy state. The QOP value used is 0.
| |
| MessageProp | back to summary |
|---|---|
| public MessageProp(int qop, boolean privState) Constructor which sets the values for the qop and privacy state.
| |
| getMinorStatus | back to summary |
|---|---|
| public int getMinorStatus() Retrieves the minor status code that the underlying mechanism might have set for this per-message operation.
| |
| getMinorString | back to summary |
|---|---|
| public String getMinorString() Retrieves a string explaining the minor status code.
| |
| getPrivacy | back to summary |
|---|---|
| public boolean getPrivacy() Retrieves the privacy state.
| |
| getQOP | back to summary |
|---|---|
| public int getQOP() Retrieves the QOP value.
| |
| isDuplicateToken | back to summary |
|---|---|
| public boolean isDuplicateToken() Tests if this is a duplicate of an earlier token.
| |
| isGapToken | back to summary |
|---|---|
| public boolean isGapToken() Tests if an expected token was not received, i.e., one or more predecessor tokens have not yet been successfully processed.
| |
| isOldToken | back to summary |
|---|---|
| public boolean isOldToken() Tests if this token's validity period has expired, i.e., the token is too old to be checked for duplication.
| |
| isUnseqToken | back to summary |
|---|---|
| public boolean isUnseqToken() Tests if a later token had already been processed.
| |
| resetStatusValues | back to summary |
|---|---|
| private void resetStatusValues() Resets the supplementary status values to false. | |
| setPrivacy | back to summary |
|---|---|
| public void setPrivacy(boolean privState) Sets the privacy state.
| |
| setQOP | back to summary |
|---|---|
| public void setQOP(int qop) Sets the QOP value.
| |
| setSupplementaryStates | back to summary |
|---|---|
| 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.
| |