|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 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(int qop,
boolean privState)
Constructor which sets the values for the qop and privacy state. |
Method Summary | |
int |
getMinorStatus()
Retrieves the minor status 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 has 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. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public MessageProp(int qop, boolean privState)
qop
- the QOP value.privState
- the privacy (ie. confidentiality) state.Method Detail |
public int getQOP()
public boolean getPrivacy()
public int getMinorStatus()
public String getMinorString()
public void setQOP(int qop)
qop
- the int value to set the QOP to.public void setPrivacy(boolean privState)
privState
- true is the privacy (i.e., confidentiality) state is
true, false otherwise.public boolean isDuplicateToken()
public boolean isOldToken()
public boolean isUnseqToken()
public boolean isGapToken()
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 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 integer minor status code that the underlying
mechanism wants to set.minorString
- the textual representation of the minorStatus value.public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |