public class CreateLoginToken
extends java.lang.Object
Constructor and Description |
---|
CreateLoginToken() |
CreateLoginToken(java.lang.String userId,
java.lang.String targetUrl,
java.lang.String reauthUrl,
int sessionDurationMinutes)
Constructs an instance of the CreateLoginToken request object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getReauthUrl() |
int |
getSessionDurationMinutes() |
java.lang.String |
getTargetUrl() |
java.lang.String |
getUserId() |
void |
setReauthUrl(java.lang.String reauthUrl) |
void |
setSessionDurationMinutes(int sessionDurationMinutes) |
void |
setTargetUrl(java.lang.String targetUrl) |
void |
setUserId(java.lang.String userId) |
public CreateLoginToken()
public CreateLoginToken(java.lang.String userId, java.lang.String targetUrl, java.lang.String reauthUrl, int sessionDurationMinutes)
userId
- - The user Id who will be logged in via the resulting token.targetUrl
- - The target url the user will be redirected to upon logging in with the token. If blank, the default from site configuration is used.reauthUrl
- - The re-authorization url the user will be redirected to upon logging out or the session expiring. If blank, the default from site configuration is used.sessionDurationMinutes
- - The duration of the session for this login token, in minutes.public java.lang.String getUserId()
public void setUserId(java.lang.String userId)
userId
- The user Id who will be logged in via the resulting token.public java.lang.String getTargetUrl()
public void setTargetUrl(java.lang.String targetUrl)
targetUrl
- The target url the user will be redirected to upon logging in with the token. If blank, the default from site configuration is used upon loginpublic java.lang.String getReauthUrl()
public void setReauthUrl(java.lang.String reauthUrl)
reauthUrl
- The reauthorization url the user will be redirected to upon logging out or the session expiring. If blank, the default from site configuration is used.public int getSessionDurationMinutes()
public void setSessionDurationMinutes(int sessionDurationMinutes)
sessionDurationMinutes
- Specifies the duration of the login session, once they login with the token.