public class DCTMAuthenticationImpl extends java.lang.Object implements IAuthentication
newSession(String, String, String, String)
is required for just about every Service available.IAuthentication.RunAsWork<Result>
Modifier | Constructor and Description |
---|---|
protected |
DCTMAuthenticationImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
endSession(java.lang.String ticket)
End the Documentum session with the 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
newSession(String, String, String, String)
which omits the domain parameter. |
<R> R |
runAsAdmin(IAuthentication.RunAsWork<R> runAsWork)
This code is to be used extremely sparingly.
|
java.lang.String |
runAsUser(java.lang.String userName)
This code is to be used extremely sparingly.
|
boolean |
validateSession(java.lang.String ticket)
Determine whether a given ticket is currently valid to use
|
public AuthenticationResult newSessionSimple(java.lang.String username, java.lang.String password, java.lang.String docbase)
newSession(String, String, String, String)
which omits the domain parameter. An empty string is used for the domain.newSessionSimple
in interface IAuthentication
username
- password
- docbase
- the Documentum docbase to authenticate againstpublic AuthenticationResult newSession(java.lang.String username, java.lang.String password, java.lang.String domain, java.lang.String docbase)
dctm.dictionary.repository
property.newSession
in interface IAuthentication
username
- password
- domain
- the Windows domain the user is associated withdocbase
- the Documentum docbase to authenticate againstpublic boolean endSession(java.lang.String ticket)
endSession
in interface IAuthentication
ticket
- a ticket obtained via newSession(String, String, String, String)
or newSessionSimple(String, String, String)
.public boolean validateSession(java.lang.String ticket)
validateSession
in interface IAuthentication
ticket
- a ticket obtained via newSession(String, String, String, String)
or newSessionSimple(String, String, 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)
IAuthentication
runAsAdmin
in interface IAuthentication
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