Class DeviceAuthorizationResponse
- java.lang.Object
-
- com.authlete.common.dto.ApiResponse
-
- com.authlete.common.dto.DeviceAuthorizationResponse
-
- All Implemented Interfaces:
Serializable
public class DeviceAuthorizationResponse extends ApiResponse
Response from Authlete's/api/device/authorizationAPI.Authlete's
/api/device/authorizationAPI returns JSON which can be mapped to this class. The authorization server implementation should retrieve the value ofactionfrom the response and take the following steps according to the value.OK-
When the value of
actionisOK, it means that the device authorization request from the client application is valid.The authorization server implementation should generate a response to the client application with
200 OKandapplication/json.The
getResponseContent()method returns a JSON string which can be used as the entity body of the response.The following illustrates the response which the authorization server implementation should generate and return to the client application.
HTTP/1.1 200 OK Content-Type: application/json Cache-Control: no-store Pragma: no-cache (The value returned from
getResponseContent())
BAD_REQUEST-
When the value of
actionisBAD_REQUEST, it means that the device authorization request from the client application was wrong.The authorization server implementation should generate a response to the client application with
400 Bad Requestandapplication/json.The
getResponseContent()method returns a JSON string which describes the error, so it can be used as the entity body of the response.The following illustrates the response which the authorization server implementation should generate and return to the client application.
HTTP/1.1 400 Bad Request Content-Type: application/json Cache-Control: no-store Pragma: no-cache (The value returned from
getResponseContent())
UNAUTHORIZED-
When the value of
actionisUNAUTHORIZED, it means that client authentication of the device authorization request failed.The authorization server implementation should generate a response to the client application with
401 Unauthorizedandapplication/json.The
getResponseContent()method returns a JSON string which describes the error, so it can be used as the entity body of the response.The following illustrates the response which the authorization server implementation should generate and return to the client application.
HTTP/1.1 401 Unauthorized WWW-Authenticate: (challenge) Content-Type: application/json Cache-Control: no-store Pragma: no-cache (The value returned from
getResponseContent())
INTERNAL_SERVER_ERROR-
When the value of
actionisINTERNAL_SERVER_ERROR, it means that the API call from the authorization server implementation was wrong or that an error occurred in Authlete.In either case, from a viewpoint of the client application, it is an error on the server side. Therefore, the authorization server implementation should generate a response to the client application with
500 Internal Server Errorandapplication/json.The
getResponseContent()method returns a JSON string which describes the error, so it can be used as the entity body of the response.The following illustrates the response which the authorization server implementation should generate and return to the client application.
HTTP/1.1 500 Internal Server Error Content-Type: application/json Cache-Control: no-store Pragma: no-cache (The value returned from
getResponseContent())
- Since:
- 2.42
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceAuthorizationResponse.ActionThe next action that the authorization server implementation should take.
-
Constructor Summary
Constructors Constructor Description DeviceAuthorizationResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getAcrs()Get the list of ACR values requested by the device authorization request.DeviceAuthorizationResponse.ActiongetAction()Get the next action that the implementation of the device authorization endpoint should take.AuthzDetailsgetAuthorizationDetails()Get the authorization details.String[]getClaimNames()Get the names of the claims which were requested indirectly via some special scopes.Pair[]getClientAttributes()Get the attributes of the client.ClientAuthMethodgetClientAuthMethod()Get the client authentication method that should be performed at the device authorization endpoint.URIgetClientEntityId()Get the entity ID of the client.longgetClientId()Get the client ID of the client application that has made the device authorization request.StringgetClientIdAlias()Get the client ID alias of the client application that has made the device authorization request.StringgetClientIdentifier()Get the client identifier used in the device authorization request.StringgetClientName()Get the name of the client application which has made the device authorization request.StringgetDeviceCode()Get the device verification code.DynamicScope[]getDynamicScopes()Get the dynamic scopes which the client application requested by thescoperequest parameter.intgetExpiresIn()Get the duration of the issued device verification code and end-user verification code in seconds.GMActiongetGmAction()Get the value of thegrant_management_actionrequest parameter.GrantgetGrant()Get the content of the grant which is identified by thegrant_idrequest parameter.StringgetGrantId()Get the value of thegrant_idrequest parameter.StringgetGrantSubject()Get the subject of the user who has given the grant which is identified by thegrant_idrequest parameter.intgetInterval()Get the minimum amount of time in seconds that the client must wait for between polling requests to the token endpoint.URI[]getResources()Get the resources specified by theresourcerequest parameters.StringgetResponseContent()Get the content that can be used to generate a response to the client application.Scope[]getScopes()Get the scopes requested by the device authorization request.Pair[]getServiceAttributes()Get the attributes of the service that the client application belongs to.StringgetUserCode()Get the end-user verification code.URIgetVerificationUri()Get the end-user verification URI.URIgetVerificationUriComplete()Get the end-user verification URI that includes the end-user verification code.String[]getWarnings()Get the warnings raised during processing the device authorization request.booleanisClientEntityIdUsed()Get the flag which indicates whether the entity ID of the client was used in the device authorization request as a client ID.booleanisClientIdAliasUsed()Get the flag which indicates whether the client ID alias was used in the device authorization request.DeviceAuthorizationResponsesetAcrs(String[] acrs)Set the list of ACR values requested by the device authorization request.DeviceAuthorizationResponsesetAction(DeviceAuthorizationResponse.Action action)Set the next action that the implementation of the device authorization endpoint should take.DeviceAuthorizationResponsesetAuthorizationDetails(AuthzDetails details)Set the authorization details.DeviceAuthorizationResponsesetClaimNames(String[] names)Set the names of the claims which were requested indirectly via some special scopes.DeviceAuthorizationResponsesetClientAttributes(Pair[] attributes)Set the attributes of the client.DeviceAuthorizationResponsesetClientAuthMethod(ClientAuthMethod method)Set the client authentication method that should be performed at the device authorization endpoint.DeviceAuthorizationResponsesetClientEntityId(URI entityId)Set the entity ID of the client.DeviceAuthorizationResponsesetClientEntityIdUsed(boolean used)Set the flag which indicates whether the entity ID of the client was used in the device authorization request as a client ID.DeviceAuthorizationResponsesetClientId(long clientId)Set the client ID of the client application that has made the device authorization request.DeviceAuthorizationResponsesetClientIdAlias(String alias)Set the client ID alias of the client application that has made the device authorization request.DeviceAuthorizationResponsesetClientIdAliasUsed(boolean used)Set the flag which indicates whether the client ID alias was used in the device authorization request.DeviceAuthorizationResponsesetClientName(String name)Set the name of the client application which has made the device authorization request.DeviceAuthorizationResponsesetDeviceCode(String code)Set the device verification code.DeviceAuthorizationResponsesetDynamicScopes(DynamicScope[] dynamicScopes)Set the dynamic scopes which the client application requested by thescoperequest parameter.DeviceAuthorizationResponsesetExpiresIn(int expiresIn)Set the duration of the issued device verification code and end-user verification code in seconds.DeviceAuthorizationResponsesetGmAction(GMAction action)Set the value of thegrant_management_actionrequest parameter.DeviceAuthorizationResponsesetGrant(Grant grant)Set the content of the grant which is identified by thegrant_idrequest parameter.DeviceAuthorizationResponsesetGrantId(String grantId)Set the value of thegrant_idrequest parameter.DeviceAuthorizationResponsesetGrantSubject(String subject)Set the subject of the user who has given the grant which is identified by thegrant_idrequest parameter.DeviceAuthorizationResponsesetInterval(int interval)Set the minimum amount of time in seconds that the client must wait for between polling requests to the token endpoint.DeviceAuthorizationResponsesetResources(URI[] resources)Set the resources specified by theresourcerequest parameters.DeviceAuthorizationResponsesetResponseContent(String responseContent)Set the content that can be used to generate a response to the client application.DeviceAuthorizationResponsesetScopes(Scope[] scopes)Set the scopes requested by the device authorization request.DeviceAuthorizationResponsesetServiceAttributes(Pair[] attributes)Set the attributes of the service that the client application belongs to.DeviceAuthorizationResponsesetUserCode(String code)Set the end-user verification code.DeviceAuthorizationResponsesetVerificationUri(URI uri)Set the end-user verification URI.DeviceAuthorizationResponsesetVerificationUriComplete(URI uri)Set the end-user verification URI that includes the end-user verification code.DeviceAuthorizationResponsesetWarnings(String[] warnings)Set the warnings raised during processing the device authorization request.-
Methods inherited from class com.authlete.common.dto.ApiResponse
getResponseHeaders, getResultCode, getResultMessage, setResponseHeaders, setResultCode, setResultMessage
-
-
-
-
Method Detail
-
getAction
public DeviceAuthorizationResponse.Action getAction()
Get the next action that the implementation of the device authorization endpoint should take.- Returns:
- The next action.
-
setAction
public DeviceAuthorizationResponse setAction(DeviceAuthorizationResponse.Action action)
Set the next action that the implementation of the device authorization endpoint should take.- Parameters:
action- The next action.- Returns:
thisobject.
-
getResponseContent
public String getResponseContent()
Get the content that can be used to generate a response to the client application.- Returns:
- The content of a response to the client.
-
setResponseContent
public DeviceAuthorizationResponse setResponseContent(String responseContent)
Set the content that can be used to generate a response to the client application.- Parameters:
responseContent- The content of a response to the client.- Returns:
thisobject.
-
getClientId
public long getClientId()
Get the client ID of the client application that has made the device authorization request.- Returns:
- The client ID of the client application.
-
setClientId
public DeviceAuthorizationResponse setClientId(long clientId)
Set the client ID of the client application that has made the device authorization request.- Parameters:
clientId- The client ID of the client application.- Returns:
thisobject.
-
getClientIdAlias
public String getClientIdAlias()
Get the client ID alias of the client application that has made the device authorization request.- Returns:
- The client ID alias of the client application.
-
setClientIdAlias
public DeviceAuthorizationResponse setClientIdAlias(String alias)
Set the client ID alias of the client application that has made the device authorization request.- Parameters:
alias- The client ID alias of the client application.- Returns:
thisobject.
-
isClientIdAliasUsed
public boolean isClientIdAliasUsed()
Get the flag which indicates whether the client ID alias was used in the device authorization request.- Returns:
trueif the client ID alias was used in the request.
-
setClientIdAliasUsed
public DeviceAuthorizationResponse setClientIdAliasUsed(boolean used)
Set the flag which indicates whether the client ID alias was used in the device authorization request.- Parameters:
used-trueto indicate that the client ID alias was used in the request.- Returns:
thisobject.
-
getClientEntityId
public URI getClientEntityId()
Get the entity ID of the client."Entity ID" is a technical term defined in OpenID Federation 1.0.
- Returns:
- The entity ID of the client.
- Since:
- 3.37, Authlete 2.3
- See Also:
- OpenID Federation 1.0
-
setClientEntityId
public DeviceAuthorizationResponse setClientEntityId(URI entityId)
Set the entity ID of the client."Entity ID" is a technical term defined in OpenID Federation 1.0.
- Parameters:
entityId- The entity ID of the client.- Returns:
thisobject.- Since:
- 3.37, Authlete 2.3
- See Also:
- OpenID Federation 1.0
-
isClientEntityIdUsed
public boolean isClientEntityIdUsed()
Get the flag which indicates whether the entity ID of the client was used in the device authorization request as a client ID."Entity ID" is a technical term defined in OpenID Federation 1.0.
- Returns:
trueif the entity ID of the client was used in the request as a client ID.- Since:
- 3.37, Authlete 2.3
- See Also:
- OpenID Federation 1.0
-
setClientEntityIdUsed
public DeviceAuthorizationResponse setClientEntityIdUsed(boolean used)
Set the flag which indicates whether the entity ID of the client was used in the device authorization request as a client ID."Entity ID" is a technical term defined in OpenID Federation 1.0.
- Parameters:
used-trueto indicate that the entity ID of the client was used in the request as a client ID.- Returns:
thisobject.- Since:
- 3.37, Authlete 2.3
- See Also:
- OpenID Federation 1.0
-
getClientIdentifier
public String getClientIdentifier()
Get the client identifier used in the device authorization request.When
isClientIdAliasUsed()returnstrue, this method returns the same value asgetClientIdAlias()does. Otherwise, ifisClientEntityIdUsed()returnstrue, this method returns the same value asgetClientEntityId().toString()does. In other cases, this method returns the string representation of the value returned fromgetClientId().- Returns:
- The client identifier used in the device authorization request.
-
getClientName
public String getClientName()
Get the name of the client application which has made the device authorization request.- Returns:
- The name of the client application.
-
setClientName
public DeviceAuthorizationResponse setClientName(String name)
Set the name of the client application which has made the device authorization request.- Parameters:
name- The name of the client application.- Returns:
thisobject.
-
getClientAuthMethod
public ClientAuthMethod getClientAuthMethod()
Get the client authentication method that should be performed at the device authorization endpoint.If the client could not be identified by the information in the request, this method returns
null.- Returns:
- The client authentication method that should be performed at the device authorization endpoint.
- Since:
- 2.50
-
setClientAuthMethod
public DeviceAuthorizationResponse setClientAuthMethod(ClientAuthMethod method)
Set the client authentication method that should be performed at the device authorization endpoint.- Parameters:
method- The client authentication method that should be performed at the device authorization endpoint.- Returns:
thisobject.- Since:
- 2.50
-
getScopes
public Scope[] getScopes()
Get the scopes requested by the device authorization request.Basically, this method returns the value of the
"scope"request parameter in the device authorization request. However, because unregistered scopes are dropped on Authlete side, if the"scope"request parameter contains unknown scopes, the list returned by this method becomes different from the value of the"scope"request parameter.Note that
Scope.getDescription()method andScope.getDescriptions()method of each element (Scopeinstance) in the array returned from this method always returnnulleven if descriptions of the scopes are registered.- Returns:
- The requested scopes.
-
setScopes
public DeviceAuthorizationResponse setScopes(Scope[] scopes)
Set the scopes requested by the device authorization request.- Parameters:
scopes- The requested scopes.- Returns:
thisobject.
-
getDynamicScopes
public DynamicScope[] getDynamicScopes()
Get the dynamic scopes which the client application requested by thescoperequest parameter. See the description ofDynamicScopefor details.- Returns:
- The list of dynamic scopes.
- Since:
- 2.92
- See Also:
DynamicScope
-
setDynamicScopes
public DeviceAuthorizationResponse setDynamicScopes(DynamicScope[] dynamicScopes)
Set the dynamic scopes which the client application requested by thescoperequest parameter. See the description ofDynamicScopefor details.- Parameters:
dynamicScopes- The list of dynamic scopes.- Returns:
thisobject.- Since:
- 2.92
- See Also:
DynamicScope
-
getClaimNames
public String[] getClaimNames()
Get the names of the claims which were requested indirectly via some special scopes. See 5.4. Requesting Claims using Scope Values in OpenID Connect Core 1.0 for details.This method always returns
nullif thescoperequest parameter of the device authorization request does not include theopenidscope even if special scopes (such asprofile) are included in the request (unless theopenidscope is included in the default set of scopes which is used when thescoperequest parameter is omitted).- Returns:
- The names of the requested claims.
- Since:
- 2.44
-
setClaimNames
public DeviceAuthorizationResponse setClaimNames(String[] names)
Set the names of the claims which were requested indirectly via some special scopes.- Parameters:
names- The names of the requested claims.- Returns:
thisobject.- Since:
- 2.44
-
getAcrs
public String[] getAcrs()
Get the list of ACR values requested by the device authorization request.Basically, this method returns the value of the
"acr_values"request parameter in the device authorization request. However, because unsupported ACR values are dropped on Authlete side, if the"acr_values"request parameter contains unrecognized ACR values, the list returned by this method becomes different from the value of the"acr_values"request parameter.If the request does not include the
acr_valuesrequest parameter, the value of thedefault_acr_valuesclient metadata is used.- Returns:
- The list of requested ACR values.
- Since:
- 2.44
-
setAcrs
public DeviceAuthorizationResponse setAcrs(String[] acrs)
Set the list of ACR values requested by the device authorization request.- Parameters:
acrs- The list of requested ACR values.- Returns:
thisobject.- Since:
- 2.44
-
getDeviceCode
public String getDeviceCode()
Get the device verification code. This corresponds to thedevice_codeproperty in the response to the client.- Returns:
- The device verification code.
-
setDeviceCode
public DeviceAuthorizationResponse setDeviceCode(String code)
Set the device verification code. This corresponds to thedevice_codeproperty in the response to the client.- Parameters:
code- The device verification code.- Returns:
thisobject.
-
getUserCode
public String getUserCode()
Get the end-user verification code. This corresponds to theuser_codeproperty in the response to the client.- Returns:
- The end-user verification code.
-
setUserCode
public DeviceAuthorizationResponse setUserCode(String code)
Set the end-user verification code. This corresponds to theuser_codeproperty in the response to the client.- Parameters:
code- The end-user verification code.- Returns:
thisobject.
-
getVerificationUri
public URI getVerificationUri()
Get the end-user verification URI. This corresponds to theverification_uriproperty in the response to the client.- Returns:
- The end-user verification URI.
-
setVerificationUri
public DeviceAuthorizationResponse setVerificationUri(URI uri)
Set the end-user verification URI. This corresponds to theverification_uriproperty in the response to the client.- Parameters:
uri- The end-user verification URI.- Returns:
thisobject.
-
getVerificationUriComplete
public URI getVerificationUriComplete()
Get the end-user verification URI that includes the end-user verification code. This corresponds to theverification_uri_completeproperty in the response to the client.- Returns:
- The end-user verification URI that includes the end-user verification code.
-
setVerificationUriComplete
public DeviceAuthorizationResponse setVerificationUriComplete(URI uri)
Set the end-user verification URI that includes the end-user verification code. This corresponds to theverification_uri_completeproperty in the response to the client.- Parameters:
uri- The end-user verification URI that includes the end-user verification code.- Returns:
thisobject.
-
getExpiresIn
public int getExpiresIn()
Get the duration of the issued device verification code and end-user verification code in seconds. This corresponds to theexpires_inproperty in the response to the client.- Returns:
- The duration of the issued device verification code and end-user verification code in seconds.
-
setExpiresIn
public DeviceAuthorizationResponse setExpiresIn(int expiresIn)
Set the duration of the issued device verification code and end-user verification code in seconds. This corresponds to theexpires_inproperty in the response to the client.- Parameters:
expiresIn- The duration of the issued device verification code and end-user verification code in seconds.- Returns:
thisobject.
-
getInterval
public int getInterval()
Get the minimum amount of time in seconds that the client must wait for between polling requests to the token endpoint. This corresponds to theintervalproperty in the response to the client.- Returns:
- The minimum amount of time in seconds between polling requests.
-
setInterval
public DeviceAuthorizationResponse setInterval(int interval)
Set the minimum amount of time in seconds that the client must wait for between polling requests to the token endpoint. This corresponds to theintervalproperty in the response to the client.- Parameters:
interval- The minimum amount of time in seconds between polling requests.- Returns:
thisobject.
-
getWarnings
public String[] getWarnings()
Get the warnings raised during processing the device authorization request.- Returns:
- Warnings. This may be
null.
-
setWarnings
public DeviceAuthorizationResponse setWarnings(String[] warnings)
Set the warnings raised during processing the device authorization request.- Parameters:
warnings- Warnings.- Returns:
thisobject.
-
getResources
public URI[] getResources()
Get the resources specified by theresourcerequest parameters. See "Resource Indicators for OAuth 2.0" for details.- Returns:
- Target resources.
- Since:
- 2.62
-
setResources
public DeviceAuthorizationResponse setResources(URI[] resources)
Set the resources specified by theresourcerequest parameters. See "Resource Indicators for OAuth 2.0" for details.- Parameters:
resources- Target resources.- Returns:
thisobject.- Since:
- 2.62
-
getAuthorizationDetails
public AuthzDetails getAuthorizationDetails()
Get the authorization details. This represents the value of the"authorization_details"request parameter which is defined in "OAuth 2.0 Rich Authorization Requests".- Returns:
- Authorization details.
- Since:
- 2.58
-
setAuthorizationDetails
public DeviceAuthorizationResponse setAuthorizationDetails(AuthzDetails details)
Set the authorization details. This represents the value of the"authorization_details"request parameter which is defined in "OAuth 2.0 Rich Authorization Requests".- Parameters:
details- Authorization details.- Returns:
thisobject.- Since:
- 2.58
-
getGmAction
public GMAction getGmAction()
Get the value of thegrant_management_actionrequest parameter.The
grant_management_actionrequest parameter is defined in Grant Management for OAuth 2.0, which is supported by Authlete 2.3 and newer versions.- Returns:
- A grant management action.
nullor one ofCREATE,REPLACEandMERGE. - Since:
- 3.1
- See Also:
- Grant Management for OAuth 2.0
-
setGmAction
public DeviceAuthorizationResponse setGmAction(GMAction action)
Set the value of thegrant_management_actionrequest parameter.The
grant_management_actionrequest parameter is defined in Grant Management for OAuth 2.0, which is supported by Authlete 2.3 and newer versions.- Parameters:
action- A grant management action.nullor one ofCREATE,REPLACEandMERGE.- Returns:
thisobject.- Since:
- 3.1
- See Also:
- Grant Management for OAuth 2.0
-
getGrantId
public String getGrantId()
Get the value of thegrant_idrequest parameter.The
grant_idrequest parameter is defined in Grant Management for OAuth 2.0, which is supported by Authlete 2.3 and newer versions.- Returns:
- A grant ID.
- Since:
- 3.1
- See Also:
- Grant Management for OAuth 2.0
-
setGrantId
public DeviceAuthorizationResponse setGrantId(String grantId)
Set the value of thegrant_idrequest parameter.The
grant_idrequest parameter is defined in Grant Management for OAuth 2.0, which is supported by Authlete 2.3 and newer versions.- Parameters:
grantId- A grant ID.- Returns:
thisobject.- Since:
- 3.1
- See Also:
- Grant Management for OAuth 2.0
-
getGrantSubject
public String getGrantSubject()
Get the subject of the user who has given the grant which is identified by thegrant_idrequest parameter.Authlete 2.3 and newer versions support Grant Management for OAuth 2.0. An authorization request may contain a
grant_idrequest parameter which is defined in the specification. If the value of the request parameter is valid,getGrantSubject()will return the subject of the user who has given the grant to the client application. Authorization server implementations may use the value returned fromgetGrantSubject()in order to determine the user to authenticate.The user your system will authenticate during the authorization process (or has already authenticated) may be different from the user of the grant. The first implementer's draft of "Grant Management for OAuth 2.0" does not mention anything about the case, so the behavior in the case is left to implementations. Authlete will not perform the grant management action when the
subjectpassed to Authlete does not match the user of the grant.- Returns:
- The subject of the user who has given the grant.
- Since:
- 3.1
- See Also:
- Grant Management for OAuth 2.0
-
setGrantSubject
public DeviceAuthorizationResponse setGrantSubject(String subject)
Set the subject of the user who has given the grant which is identified by thegrant_idrequest parameter.Authlete 2.3 and newer versions support Grant Management for OAuth 2.0. An authorization request may contain a
grant_idrequest parameter which is defined in the specification. If the value of the request parameter is valid,getGrantSubject()will return the subject of the user who has given the grant to the client application. Authorization server implementations may use the value returned fromgetGrantSubject()in order to determine the user to authenticate.The user your system will authenticate during the authorization process (or has already authenticated) may be different from the user of the grant. The first implementer's draft of "Grant Management for OAuth 2.0" does not mention anything about the case, so the behavior in the case is left to implementations. Authlete will not perform the grant management action when the
subjectpassed to Authlete does not match the user of the grant.- Parameters:
subject- The subject of the user who has given the grant.- Returns:
thisobject.- Since:
- 3.1
- See Also:
- Grant Management for OAuth 2.0
-
getGrant
public Grant getGrant()
Get the content of the grant which is identified by thegrant_idrequest parameter.The user your system will authenticate during the authorization process (or has already authenticated) may be different from the user of the grant. Be careful when your system displays the content of the grant.
- Returns:
- The content of the grant.
- Since:
- 3.1
- See Also:
- Grant Management for OAuth 2.0
-
setGrant
public DeviceAuthorizationResponse setGrant(Grant grant)
Set the content of the grant which is identified by thegrant_idrequest parameter.The user your system will authenticate during the authorization process (or has already authenticated) may be different from the user of the grant. Be careful when your system displays the content of the grant.
- Parameters:
grant- The content of the grant.- Returns:
thisobject.- Since:
- 3.1
- See Also:
- Grant Management for OAuth 2.0
-
getServiceAttributes
public Pair[] getServiceAttributes()
Get the attributes of the service that the client application belongs to.This property is available since Authlete 2.2.
- Returns:
- The attributes of the service.
- Since:
- 2.88
-
setServiceAttributes
public DeviceAuthorizationResponse setServiceAttributes(Pair[] attributes)
Set the attributes of the service that the client application belongs to.This property is available since Authlete 2.2.
- Parameters:
attributes- The attributes of the service.- Returns:
thisobject.- Since:
- 2.88
-
getClientAttributes
public Pair[] getClientAttributes()
Get the attributes of the client.This property is available since Authlete 2.2.
- Returns:
- The attributes of the client.
- Since:
- 2.88
-
setClientAttributes
public DeviceAuthorizationResponse setClientAttributes(Pair[] attributes)
Set the attributes of the client.This property is available since Authlete 2.2.
- Parameters:
attributes- The attributes of the client.- Returns:
thisobject.- Since:
- 2.88
-
-