Package com.documentum.fc.common
Interface IDfLoginInfo
public interface IDfLoginInfo
Encapsulates the information needed to validate and login a user to a repository. It stores the user's credential
information in addition to options that affect the server login process.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Symbolic constant forsetSecurityMode(String)
.static final String
Symbolic constant forsetSecurityMode(String)
.static final String
Symbolic constant forsetSecurityMode(String)
.static final String
Symbolic constant forsetSecurityMode(String)
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the application identifier.Returns the application token.Returns the Windows NT domain name.boolean
Indicates whether connection authentication should be forced even if the connection is retrieved from the pool.Returns the password.boolean
Indicates whether connection authentication should be performed from time to time for connections retrieved from the pool.boolean
Returns the principal mode indicator.Returns the security mode.getUser()
Returns the user name.Returns the first optional argument used by custom server-side authentication plugins.Deprecated.a second user argument is no longer supported by the server.boolean
matches
(IDfLoginInfo that) A little bit looser variation ofequals
that allows for objects of different implementation type to be compared for equality relative to
IDfLoginInfo
.void
setApplicationId
(String identifier) Sets the application identifier.void
setApplicationToken
(String token) Sets the application token.void
Sets the Windows NT domain name.void
setForceAuthentication
(boolean forceAuthentication) Sets whether connection authentication should be forced even if the connection is retrieved from the pool.void
setPassword
(String password) Sets the password.void
setPeriodicAuthentication
(boolean periodicAuthentication) Sets whether connection authentication should be performed from time to time for connections retrieved from the pool.void
setPrincipalMode
(boolean principalMode) Sets the principal mode indicator.void
setSecurityMode
(String securityMode) Sets the security mode.void
Sets the user name.void
setUserArg1
(String arg) Sets the first optional argument used by custom server-side authentication plugins.void
setUserArg2
(String arg) Deprecated.a second user argument is no longer supported by the server.
-
Field Details
-
SECURITY_MODE_SECURE
Symbolic constant forsetSecurityMode(String)
. The user is interested in a secure connection only. If the server default is set to 'native', the connection request fails. If the server default is set to either 'secure' or 'dual', the command succeeds. -
SECURITY_MODE_NATIVE
Symbolic constant forsetSecurityMode(String)
. The user is interested in a native connection only. If the server default is set to 'secure', the connection request fails. If the server default is set to either 'native' or 'dual', the request succeeds. -
SECURITY_MODE_TRY_SECURE_FIRST
Symbolic constant forsetSecurityMode(String)
. The user prefers a secure connection over a native connection. DFC tries to establish a secure connection first. If that fails, it will try to get a native connection. The connection request fails if neither a secure nor native connection can be established. -
SECURITY_MODE_TRY_NATIVE_FIRST
Symbolic constant forsetSecurityMode(String)
. The user prefers a native connection over a secure connection. DFC tries to establish a native connection first. If that fails, it will try to get a secure connection. The connection request fails if neither a native nor a secure connect can be established.
-
-
Method Details
-
getUser
String getUser()Returns the user name.- See Also:
-
setUser
Sets the user name. You should set the user name to match the operating system username, so that the repository can properly authenticate the user account.- Parameters:
userName
- the user name- See Also:
-
getPassword
String getPassword()Returns the password.- See Also:
-
setPassword
Sets the password. You should set the password to match the operating system user password, so that the repository can properly authenticate the user account.- Parameters:
password
- the user's password- See Also:
-
getDomain
String getDomain()Returns the Windows NT domain name. Use this method only for Documentum servers running on Windows NT.- See Also:
-
setDomain
Sets the Windows NT domain name. Use this method only for Documentum servers running on Windows NT.- Parameters:
domain
- the Windows NT domain name- See Also:
-
getUserArg1
String getUserArg1()Returns the first optional argument used by custom server-side authentication plugins.- See Also:
-
setUserArg1
Sets the first optional argument used by custom server-side authentication plugins.- Parameters:
arg
- the argument- See Also:
-
getUserArg2
String getUserArg2()Deprecated.a second user argument is no longer supported by the server.Returns the second optional argument used by custom server-side authentication plugins.- See Also:
-
setUserArg2
Deprecated.a second user argument is no longer supported by the server.Sets the second optional argument used by custom server-side authentication plugins.- Parameters:
arg
- the argument- See Also:
-
getApplicationId
String getApplicationId()Returns the application identifier.- See Also:
-
setApplicationId
Sets the application identifier. The application identifier, provided by application as a text string, uniquely identifies the application.- Parameters:
identifier
- application ID- See Also:
-
getApplicationToken
String getApplicationToken()Returns the application token.- See Also:
-
setApplicationToken
Sets the application token.- Parameters:
token
- application token- See Also:
-
getSecurityMode
String getSecurityMode()Returns the security mode.- See Also:
-
setSecurityMode
Sets the security mode. The security mode defines what type of connection the client application is requesting with the server. Valid values are:SECURITY_MODE_SECURE
,SECURITY_MODE_NATIVE
,SECURITY_MODE_TRY_SECURE_FIRST
,SECURITY_MODE_TRY_NATIVE_FIRST
.If security mode is not set, the request is sent to the server using the default mode defined in the dfc.properties file.
The mode requested by the client interacts with the server's default secure connection setting. For details about the interaction for each of the client options, refer to the descriptions of the valid values for this method. For information about setting the server's default, refer to the Content Server Administrator's Guide.
- Parameters:
securityMode
- the security mode- See Also:
-
getPrincipalMode
boolean getPrincipalMode()Returns the principal mode indicator. When principal mode is enabled it means that this credential represents a user (principal) who is known to be authentic and therefore a password is not needed for validation.- Returns:
true
if the credential represents a principal who is known to be authentic.- See Also:
-
setPrincipalMode
void setPrincipalMode(boolean principalMode) Sets the principal mode indicator. When principal mode is enabled it means that this credential represents a user (principal) who is known to be authentic and therefore a password is not needed for validation.- Parameters:
principalMode
-true
if the credential represents a principal who is known to be authentic- See Also:
-
getForceAuthentication
boolean getForceAuthentication()Indicates whether connection authentication should be forced even if the connection is retrieved from the pool.- Returns:
true
if authentication with the server should be forced.
-
setForceAuthentication
void setForceAuthentication(boolean forceAuthentication) Sets whether connection authentication should be forced even if the connection is retrieved from the pool. If authentiation is forced then connection authentication will always occur the first time this login information is used even if the session comes from the pool and has already been authenticated at an earlier time.- Parameters:
forceAuthentication
-true
if authentication with the server should be forced.
-
getPeriodicAuthentication
boolean getPeriodicAuthentication()Indicates whether connection authentication should be performed from time to time for connections retrieved from the pool.- Returns:
true
if authentication with the server should be forced.
-
setPeriodicAuthentication
void setPeriodicAuthentication(boolean periodicAuthentication) Sets whether connection authentication should be performed from time to time for connections retrieved from the pool. With periodic authentication when an IDfSessionManager.getSession or IDfSessionManager.newSession call is used to get a session and that session comes from the pool then the session is reauthenticated if the session has not been recently authenticated. The interval is configurable in dfc.properties.- Parameters:
periodicAuthentication
-true
if periodic authentication with the server should be performed.
-
matches
A little bit looser variation ofequals
that allows for objects of different implementation type to be compared for equality relative to
IDfLoginInfo
. The looser comparison also ignores differences in one or more transient fields (like forceAuthentication). This comparison is typically used to determine if one login info is effectively the same as another when performing session pooling operations.- Since:
- 6.0
-