Package io.jans.as.client
Class DeviceAuthzRequest
- java.lang.Object
-
- io.jans.as.client.BaseRequest
-
- io.jans.as.client.ClientAuthnRequest
-
- io.jans.as.client.DeviceAuthzRequest
-
public class DeviceAuthzRequest extends ClientAuthnRequest
Represents a device authorization request to send to the authorization server.- Version:
- April 25, 2022
-
-
Constructor Summary
Constructors Constructor Description DeviceAuthzRequest(java.lang.String clientId, java.util.List<java.lang.String> scopes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getClientId()
java.util.Map<java.lang.String,java.lang.String>
getParameters()
Returns a collection of parameters of the authorization request.java.lang.String
getQueryString()
java.util.List<java.lang.String>
getScopes()
java.lang.String
getScopesAsString()
void
setClientId(java.lang.String clientId)
void
setScopes(java.util.List<java.lang.String> scopes)
-
Methods inherited from class io.jans.as.client.ClientAuthnRequest
appendClientAuthnToQuery, getAlgorithm, getAudience, getClientAssertion, getCryptoProvider, getFallbackAlgorithm, getKeyId, getSharedKey, setAlgorithm, setAudience, setCryptoProvider, setKeyId, setSharedKey
-
Methods inherited from class io.jans.as.client.BaseRequest
addCustomParameter, getAuthenticationMethod, getAuthorizationMethod, getAuthPassword, getAuthUsername, getContentType, getCredentials, getCustomParameters, getEncodedCredentials, getEncodedCredentials, getJSONParameters, getMediaType, hasCredentials, setAuthenticationMethod, setAuthorizationMethod, setAuthPassword, setAuthUsername, setContentType, setMediaType
-
-
-
-
Method Detail
-
getClientId
public java.lang.String getClientId()
-
setClientId
public void setClientId(java.lang.String clientId)
-
getScopes
public java.util.List<java.lang.String> getScopes()
-
setScopes
public void setScopes(java.util.List<java.lang.String> scopes)
-
getScopesAsString
public java.lang.String getScopesAsString()
-
getParameters
public java.util.Map<java.lang.String,java.lang.String> getParameters()
Returns a collection of parameters of the authorization request. Anynull
or empty parameter will be omitted.- Overrides:
getParameters
in classBaseRequest
- Returns:
- A collection of parameters.
-
getQueryString
public java.lang.String getQueryString()
- Specified by:
getQueryString
in classBaseRequest
-
-