com.liferay.portal.security.ntlm
Class NtlmManager
java.lang.Object
com.liferay.portal.security.ntlm.NtlmManager
public class NtlmManager
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NtlmManager
public NtlmManager(String domain,
String domainController,
String domainControllerName,
String serviceAccount,
String servicePassword)
authenticate
public NtlmUserAccount authenticate(byte[] material,
byte[] serverChallenge)
throws IOException,
NoSuchAlgorithmException,
NtlmLogonException
- Throws:
IOException
NoSuchAlgorithmException
NtlmLogonException
getDomain
public String getDomain()
getDomainController
public String getDomainController()
getDomainControllerName
public String getDomainControllerName()
getServiceAccount
public String getServiceAccount()
getServicePassword
public String getServicePassword()
negotiate
public byte[] negotiate(byte[] material,
byte[] serverChallenge)
throws IOException
- Throws:
IOException
setConfiguration
public void setConfiguration(String domain,
String domainController,
String domainControllerName,
String serviceAccount,
String servicePassword)
getAVPairBytes
protected byte[] getAVPairBytes(int avId,
String value)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
getTargetInformation
protected byte[] getTargetInformation()
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException