public class AuthenticationDetails
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AuthenticationDetails.AuthenticationType
Enumeration to hold the authentication types.
|
Constructor and Description |
---|
AuthenticationDetails(AuthenticationDetails.AuthenticationType authenticationType,
java.lang.String userId,
java.lang.String password)
Constructor to initialize the AuthenticationDetails object
|
Modifier and Type | Method and Description |
---|---|
AuthenticationDetails.AuthenticationType |
getAuthenticationType()
This method returns the authentication type
|
java.lang.String |
getAuthenticationURL() |
java.lang.String |
getPassword()
This method returns the password
|
java.lang.String |
getUserId()
This method returns the user id
|
void |
setAuthenticationType(AuthenticationDetails.AuthenticationType authenticationType)
This method sets the authentication type
|
void |
setAuthenticationURL(java.lang.String authenticationURL)
Sets the URL of the authentication dialog.
|
void |
setPassword(java.lang.String password)
Sets the password
|
void |
setUserId(java.lang.String userId)
This method sets the user id
|
public AuthenticationDetails(AuthenticationDetails.AuthenticationType authenticationType, java.lang.String userId, java.lang.String password)
authenticationType
- an instance of authentication typeuserId
- user id as stringpassword
- password in plain textpublic AuthenticationDetails.AuthenticationType getAuthenticationType()
public void setAuthenticationType(AuthenticationDetails.AuthenticationType authenticationType)
authenticationType
- instancepublic java.lang.String getUserId()
public void setUserId(java.lang.String userId)
userId
- user id as stringpublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- password in plain textpublic void setAuthenticationURL(java.lang.String authenticationURL)
authenticationURL
- URL of the authentication dialog. The URL must point to a
Cordys UI belonging to the same domain as the application.
Note: The dialog is launched with the service URL that
can be accessed using the following code
application.event.data.serviceUrl
The dialog should set
application.event.data.saved
to true when the
user has provided the credentials and saved them.
public java.lang.String getAuthenticationURL()