|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.server.security.ntlm.NtlmHelper
public final class NtlmHelper
The NtlmHelper
provides ntlm authentication through jcifs.
Method Summary | |
---|---|
static NtlmHelper |
getInstance()
Gets the current instance of NtlmHelper . |
NtlmSession |
getSession()
Gets a session with for a domain controller with the adequate challenge. |
boolean |
isLoadBalance()
Returns whether the load balance option will be used for authentication. |
NtlmAuthInfo |
logon()
Logs on to a domaincontroller with the current credentials. |
NtlmAuthInfo |
logon(NtlmSession pSession,
jcifs.smb.NtlmPasswordAuthentication pAuthentication)
Logs on to a domaincontroller with prevalidated credentials. |
NtlmAuthInfo |
logon(String pDomain,
String pUserName,
String pPassword)
Logs on to a domaincontroller with username and password. |
void |
setApplicatioName(String pApplicationName)
Sets the application name where the configuration will be found. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static NtlmHelper getInstance()
NtlmHelper
.
NtlmHelper
public void setApplicatioName(String pApplicationName)
pApplicationName
- the application namepublic boolean isLoadBalance()
true
if load balance will be used; otherwise false
public NtlmSession getSession() throws Throwable
Throwable
- if it's not possible to detect a domain controller or challengepublic NtlmAuthInfo logon(String pDomain, String pUserName, String pPassword) throws Throwable
pDomain
- the domain for the logonpUserName
- the usernamepPassword
- the password
Throwable
- if it is not possible to logonpublic NtlmAuthInfo logon() throws Throwable
null
if it's not possible
to log on with the credentials
Throwable
- if the credentials are valid but the logon failedpublic NtlmAuthInfo logon(NtlmSession pSession, jcifs.smb.NtlmPasswordAuthentication pAuthentication) throws Throwable
pSession
- the domaincontroller and challengepAuthentication
- prevalidated credentials
Throwable
- if it is not possible to logon
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |