|
Oracle Application Server HTTPClient Java API Reference 10g Release 3 (10.1.3.1.0) B32117-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
HTTPClient.ntlm.NtlmSupportFlags
The NtlmSupportFlags class represents NTLM support flags send in NTLM messages. This class reads, interprets, and writes the flags, providing an API for flag access.
WARNING:
The meanings of the flags have not been officially acknowledged by Microsoft, which owns NTLM. Many third parties have empirically deduced the meanings of the flags.
Nested Class Summary | |
static interface |
NtlmSupportFlags.Flags |
Constructor Summary | |
NtlmSupportFlags(byte[] initialNtlmFlags) Constructor |
|
NtlmSupportFlags(int initialFlags) Constructor |
Method Summary | |
boolean |
anyFlagsOn(int flagMask) Determines the boolean result of ANDing the given mask with the current flag data. |
int |
clearFlags(int flags) Clears only the specified flags, updating the current state. |
int |
getFlags() Determines the current flag data. |
byte[] |
getNtlmBytes() Determines a byte array representing the current flag set values. |
int |
replaceFlags(byte[] newNtlmFlags) Replaces the flag data. |
int |
replaceFlags(int newFlags) Replaces the flag data. |
int |
setFlags(int flags) Sets only the specified flags, updating the current state. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NtlmSupportFlags(int initialFlags)
initialFlags
- Initial flagspublic NtlmSupportFlags(byte[] initialNtlmFlags) throws java.lang.IllegalArgumentException
initialNtlmFlags
- Initial flags as an NTLM 4-byte array in Little-Endian byte order.java.lang.IllegalArgumentException
- initialNtlmFlags array is not EXACTLY 4 bytes long, or null
.Method Detail |
public int getFlags()
public boolean anyFlagsOn(int flagMask)
flagMask
- Apply this masktrue
if the flagMask ANDed with the current flag state results in a non-zero value, otherwise false
.public int replaceFlags(int newFlags)
newFlags
- Set flags to this valuepublic int replaceFlags(byte[] newNtlmFlags) throws java.lang.IllegalArgumentException
newNtlmFlags
- Flags as an NTLM 4-byte array in Little-Endian byte order.java.lang.IllegalArgumentException
- newNtlmFlags array is not EXACTLY 4 bytes long, or null
.public byte[] getNtlmBytes()
Determines a byte array representing the current flag set values. The bytes are in "Little Endian" byte order for direct insertion into NTLM messages.
public int setFlags(int flags)
flags
- Set these flagspublic int clearFlags(int flags)
flags
- Clear these flags
|
Oracle Application Server HTTPClient Java API Reference 10g Release 3 (10.1.3.1.0) B32117-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |