public class AuthorizationPageModel extends Object implements Serializable
Feel free to extend this class as necessary.
| Constructor and Description |
|---|
AuthorizationPageModel()
The default constructor with default values.
|
AuthorizationPageModel(com.authlete.common.dto.AuthorizationResponse info)
Create an
AuthorizationPageModel instance using information
contained in an AuthorizationResponse object, which represents
a response from Authlete's /api/auth/authorization API. |
| Modifier and Type | Method and Description |
|---|---|
String |
getClientName()
Get the name of the client application.
|
String |
getClientUri()
Get the URL of the homepage of the client application.
|
String |
getDescription()
Get the description of the client application.
|
String |
getLoginId()
Get the login ID which should be set to the login ID field
in the authorization page as the initial value.
|
String |
getLoginIdReadOnly()
Return
"readonly" if the initial value of the login ID
should not be changed. |
String |
getLogoUri()
Get the URL of the logo image of the client application.
|
String |
getPolicyUri()
Get the URL of the policy page of the client application.
|
com.authlete.common.dto.Scope[] |
getScopes()
Get the list of scopes requested by the authorization request.
|
String |
getServiceName()
Get the name of the service.
|
String |
getTosUri()
Get the URL of "Terms of Service" page of the client application.
|
AuthorizationPageModel |
setClientName(String clientName)
Set the name of the client application.
|
AuthorizationPageModel |
setClientUri(String clientUri)
Set the URL of the homepage of the client application.
|
AuthorizationPageModel |
setDescription(String description)
Set the description of the client application.
|
AuthorizationPageModel |
setLoginId(String loginId)
Set the login ID which should be set to the login ID field
in the authorization page as the initial value.
|
AuthorizationPageModel |
setLoginIdReadOnly(String loginIdReadOnly)
Set the value returned from
getLoginIdReadOnly(). |
AuthorizationPageModel |
setLogoUri(String logoUri)
Set the URL of the logo image of the client application.
|
AuthorizationPageModel |
setPolicyUri(String policyUri)
Set the URL of the policy page of the client application.
|
AuthorizationPageModel |
setScopes(com.authlete.common.dto.Scope[] scopes)
Set the list of scopes requested by the authorization request.
|
AuthorizationPageModel |
setServiceName(String serviceName)
Set the name of the service.
|
AuthorizationPageModel |
setTosUri(String tosUri)
Set the URL of "Terms of Service" page of the client application.
|
public AuthorizationPageModel()
public AuthorizationPageModel(com.authlete.common.dto.AuthorizationResponse info)
AuthorizationPageModel instance using information
contained in an AuthorizationResponse object, which represents
a response from Authlete's /api/auth/authorization API.info - An AuthorizationResponse object, which represents a
response from Authlete's /api/auth/authorization API.public String getServiceName()
public AuthorizationPageModel setServiceName(String serviceName)
serviceName - The name of the service.this object.public String getClientName()
public AuthorizationPageModel setClientName(String clientName)
clientName - The name of the client application.this object.public String getDescription()
public AuthorizationPageModel setDescription(String description)
description - The description of the client application.this object.public String getLogoUri()
public AuthorizationPageModel setLogoUri(String logoUri)
logoUri - The URL of the logo image of the client application.this object.public String getClientUri()
public AuthorizationPageModel setClientUri(String clientUri)
clientUri - The URL of the homepage of the client application.this object.public String getPolicyUri()
public AuthorizationPageModel setPolicyUri(String policyUri)
policyUri - The URL of the policy page of the client application.this object.public String getTosUri()
public AuthorizationPageModel setTosUri(String tosUri)
tosUri - The URL of "Terms of Service" page of the client application.this object.public com.authlete.common.dto.Scope[] getScopes()
public AuthorizationPageModel setScopes(com.authlete.common.dto.Scope[] scopes)
scopes - The list of requested scopes.this object.public String getLoginId()
public AuthorizationPageModel setLoginId(String loginId)
loginId - The initial value of the login ID.this object.public String getLoginIdReadOnly()
"readonly" if the initial value of the login ID
should not be changed."readonly" if the initial value of the login ID
should not be changed. Otherwise, null.public AuthorizationPageModel setLoginIdReadOnly(String loginIdReadOnly)
getLoginIdReadOnly().loginIdReadOnly - Pass "readonly" if the initial value of the login
ID should not be changed. Otherwise, pass null.this object.Copyright © 2016. All rights reserved.