|
||||||||||
| 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(java.lang.String pDomain,
java.lang.String pUserName,
java.lang.String pPassword)
Logs on to a domaincontroller with username and password. |
void |
setApplicatioName(java.lang.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(java.lang.String pApplicationName)
pApplicationName - the application namepublic boolean isLoadBalance()
true if load balance will be used; otherwise false
public NtlmSession getSession()
throws java.lang.Throwable
java.lang.Throwable - if it's not possible to detect a domain controller or challenge
public NtlmAuthInfo logon(java.lang.String pDomain,
java.lang.String pUserName,
java.lang.String pPassword)
throws java.lang.Throwable
pDomain - the domain for the logonpUserName - the usernamepPassword - the password
java.lang.Throwable - if it is not possible to logon
public NtlmAuthInfo logon()
throws java.lang.Throwable
null if it's not possible
to log on with the credentials
java.lang.Throwable - if the credentials are valid but the logon failed
public NtlmAuthInfo logon(NtlmSession pSession,
jcifs.smb.NtlmPasswordAuthentication pAuthentication)
throws java.lang.Throwable
pSession - the domaincontroller and challengepAuthentication - prevalidated credentials
java.lang.Throwable - if it is not possible to logon
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||