|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.util.ntlm.NTLMAuthen
public class NTLMAuthen
NTLM Authentication library. Requires a JCE library with MD4 and DES with no-padding ECB cipher
| Constructor Summary | |
|---|---|
NTLMAuthen(String domain,
String hostname,
String username,
String password)
--------------------------------------------------------------------- By default uses the Cryptix libraries. |
|
NTLMAuthen(String providerClassName,
String domain,
String hostname,
String username,
String password)
--------------------------------------------------------------------- Specify a specific crypto provider. |
|
| Method Summary | |
|---|---|
String |
generateNTLM1Header()
--------------------------------------------------------------------- |
String |
generateNTLM3Header()
--------------------------------------------------------------------- Generates the 3rd step in NTLM authentication. |
byte[] |
getNonce()
--------------------------------------------------------------------- |
void |
parseNTLM2Nonce(String header)
--------------------------------------------------------------------- Extract the nonce from a NTLM Type 2 message header in base 64 encoding. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NTLMAuthen(String providerClassName,
String domain,
String hostname,
String username,
String password)
throws Exception
Exception
public NTLMAuthen(String domain,
String hostname,
String username,
String password)
throws Exception
Exception| Method Detail |
|---|
public String generateNTLM1Header()
throws IOException
IOException - an error occurred during string generation.
public void parseNTLM2Nonce(String header)
throws IllegalArgumentException
header - The string in form of "NTLM XXXXXXXXXXXXXXXX"
IllegalArgumentException - If the header is not in the right
format.
public String generateNTLM3Header()
throws IllegalStateException,
IllegalArgumentException
IllegalStateException - No nonce exists.
IllegalArgumentException - An error occurred while generation
based on the initialization parameters.public byte[] getNonce()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||