public class SolrAuthenticationImpl extends java.lang.Object implements IAuthentication
newSession(String, String, String, String)
is required for just about every Service available.IAuthentication.RunAsWork<Result>
Modifier and Type | Method and Description |
---|---|
boolean |
endSession(java.lang.String ticket)
Terminate the session with given ticket.
|
AuthenticationResult |
getLoginTicket(java.lang.String superUserName,
java.lang.String password,
java.lang.String userName,
java.lang.String docBase)
Retrieve a user's login ticket via a superuser
|
java.lang.String |
getSessionForUser(java.lang.String userName)
This is for SSO by authenticating based on a user
|
AuthenticationResult |
newSession(java.lang.String username,
java.lang.String password,
java.lang.String domain,
java.lang.String docbase)
Create a new ticket object used for connections to the docbase with the given credentials.
|
AuthenticationResult |
newSessionSimple(java.lang.String username,
java.lang.String password,
java.lang.String docbase)
A wrapper around the more complex
IAuthentication.newSession(String, String, String, String)
which omits the domain parameter. |
<R> R |
runAsAdmin(IAuthentication.RunAsWork<R> runAsWork)
Unimplemented
|
java.lang.String |
runAsUser(java.lang.String userName)
This code is to be used extremely sparingly.
|
boolean |
validateSession(java.lang.String ticket)
Validate Session checks ticket incase it is null or empty from the session
If we're using LDAPAuthentication it actually checks our map to see if thet ticket cali
|
public boolean endSession(java.lang.String ticket)
IAuthentication
endSession
in interface IAuthentication
ticket
- a ticket obtained via IAuthentication.newSession(String, String, String, String)
or IAuthentication.newSessionSimple(String, String, String)
.IAuthentication.endSession(java.lang.String)
public AuthenticationResult newSession(java.lang.String username, java.lang.String password, java.lang.String domain, java.lang.String docbase)
IAuthentication
newSession
in interface IAuthentication
username
- usernamepassword
- passworddomain
- domain namedocbase
- name of docbaseAuthenticationResult
error
returns true if method failed, otherwise falseIAuthentication.newSession(java.lang.String,
java.lang.String, java.lang.String, java.lang.String)
public AuthenticationResult newSessionSimple(java.lang.String username, java.lang.String password, java.lang.String docbase)
IAuthentication
IAuthentication.newSession(String, String, String, String)
which omits the domain parameter. An empty string is used for the domain.newSessionSimple
in interface IAuthentication
username
- usernamepassword
- passworddocbase
- name of docbaseAuthenticationResult
error
equals true if method failed, otherwise falseIAuthentication.newSessionSimple(java.lang.String,
java.lang.String, java.lang.String)
public boolean validateSession(java.lang.String ticket)
validateSession
in interface IAuthentication
ticket
- - The ticket string requiring validationIAuthentication.validateSession(java.lang.String)
public AuthenticationResult getLoginTicket(java.lang.String superUserName, java.lang.String password, java.lang.String userName, java.lang.String docBase)
IAuthentication
getLoginTicket
in interface IAuthentication
superUserName
- username of a superuser in the docbasepassword
- password for the superuser in the docbaseuserName
- user whose ticket is being retrieveddocBase
- name of docbaseAuthenticationResult
error
returns true if method failed, otherwise falsepublic <R> R runAsAdmin(IAuthentication.RunAsWork<R> runAsWork)
runAsAdmin
in interface IAuthentication
IAuthentication.runAsAdmin(com.tsgrp.opencontent.core.authentication.IAuthentication.RunAsWork)
public java.lang.String runAsUser(java.lang.String userName)
IAuthentication
runAsUser
in interface IAuthentication
public java.lang.String getSessionForUser(java.lang.String userName)
IAuthentication
getSessionForUser
in interface IAuthentication