com.liferay.portal.security.ntlm
Class NetlogonConnection
java.lang.Object
com.liferay.portal.security.ntlm.NetlogonConnection
public class NetlogonConnection
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NetlogonConnection
public NetlogonConnection()
computeNetlogonAuthenticator
public NetlogonAuthenticator computeNetlogonAuthenticator()
connect
public void connect(String domainController,
String domainControllerName,
NtlmServiceAccount ntlmServiceAccount)
throws IOException,
NoSuchAlgorithmException,
NtlmLogonException
- Throws:
IOException
NoSuchAlgorithmException
NtlmLogonException
disconnect
public void disconnect()
throws IOException
- Throws:
IOException
getClientCredential
public byte[] getClientCredential()
getDcerpcHandle
public jcifs.dcerpc.DcerpcHandle getDcerpcHandle()
getSessionKey
public byte[] getSessionKey()
setDcerpcHandle
public void setDcerpcHandle(jcifs.dcerpc.DcerpcHandle dcerpcHandle)
computeNetlogonCredential
protected byte[] computeNetlogonCredential(byte[] input,
byte[] sessionKey)
computeSessionKey
protected byte[] computeSessionKey(byte[] sharedSecret,
byte[] clientChallenge,
byte[] serverChallenge)
throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException