MessageProppublic 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. |
Fields Summary |
---|
private boolean | privacyState | private int | qop | private boolean | dupToken | private boolean | oldToken | private boolean | unseqToken | private boolean | gapToken | private int | minorStatus | private String | minorString |
Constructors Summary |
---|
public MessageProp(boolean privState)Constructor which sets the desired privacy state. The QOP value used
is 0.
this(0, privState);
| public MessageProp(int qop, boolean privState)Constructor which sets the values for the qop and privacy state.
this.qop = qop;
this.privacyState = privState;
resetStatusValues();
|
Methods Summary |
---|
public int | getMinorStatus()Retrieves the minor status code that the underlying mechanism might
have set for this per-message operation.
return minorStatus;
| public java.lang.String | getMinorString()Retrieves a string explaining the minor status code.
return minorString;
| public boolean | getPrivacy()Retrieves the privacy state.
return (privacyState);
| public int | getQOP()Retrieves the QOP value.
return qop;
| public boolean | isDuplicateToken()Tests if this is a duplicate of an earlier token.
return dupToken;
| public boolean | isGapToken()Tests if an expected token was not received, i.e., one or more
predecessor tokens have not yet been successfully processed.
return gapToken;
| public boolean | isOldToken()Tests if this token's validity period has expired, i.e., the token
is too old to be checked for duplication.
return oldToken;
| public boolean | isUnseqToken()Tests if a later token had already been processed.
return unseqToken;
| private void | resetStatusValues()Resets the supplementary status values to false.
dupToken = false;
oldToken = false;
unseqToken = false;
gapToken = false;
minorStatus = 0;
minorString = null;
| public void | setPrivacy(boolean privState)Sets the privacy state.
this.privacyState = privState;
| public void | setQOP(int qop)Sets the QOP value.
this.qop = qop;
| public void | setSupplementaryStates(boolean duplicate, boolean old, boolean unseq, boolean gap, int minorStatus, java.lang.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.
this.dupToken = duplicate;
this.oldToken = old;
this.unseqToken = unseq;
this.gapToken = gap;
this.minorStatus = minorStatus;
this.minorString = minorString;
|
|