|
||||||||||
| 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.
NtlmHelperpublic 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 challenge
public 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 logon
public 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 failed
public 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 | |||||||||