@Entity public class DeviceCode extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_DATE |
static String |
PARAM_DEVICE_CODE |
static String |
PARAM_USER_CODE |
static String |
QUERY_BY_DEVICE_CODE |
static String |
QUERY_BY_USER_CODE |
static String |
QUERY_EXPIRED_BY_DATE |
Constructor and Description |
---|
DeviceCode() |
DeviceCode(String deviceCode,
String userCode,
Set<String> scope,
String clientId,
Map<String,String> params) |
Modifier and Type | Method and Description |
---|---|
AuthenticationHolderEntity |
getAuthenticationHolder()
The authentication in place when this token was created.
|
String |
getClientId() |
String |
getDeviceCode() |
Date |
getExpiration() |
Long |
getId() |
Map<String,String> |
getRequestParameters() |
Set<String> |
getScope() |
String |
getUserCode() |
boolean |
isApproved() |
void |
setApproved(boolean approved) |
void |
setAuthenticationHolder(AuthenticationHolderEntity authenticationHolder) |
void |
setClientId(String clientId) |
void |
setDeviceCode(String deviceCode) |
void |
setExpiration(Date expiration) |
void |
setId(Long id) |
void |
setRequestParameters(Map<String,String> params) |
void |
setScope(Set<String> scope) |
void |
setUserCode(String userCode) |
public static final String QUERY_BY_USER_CODE
public static final String QUERY_BY_DEVICE_CODE
public static final String QUERY_EXPIRED_BY_DATE
public static final String PARAM_USER_CODE
public static final String PARAM_DEVICE_CODE
public static final String PARAM_DATE
public DeviceCode()
public String getDeviceCode()
public void setDeviceCode(String deviceCode)
deviceCode
- the deviceCode to setpublic String getUserCode()
public void setUserCode(String userCode)
userCode
- the userCode to setpublic Date getExpiration()
public void setExpiration(Date expiration)
public String getClientId()
public void setClientId(String clientId)
clientId
- the clientId to setpublic Map<String,String> getRequestParameters()
public void setRequestParameters(Map<String,String> params)
params
- the params to setpublic boolean isApproved()
public void setApproved(boolean approved)
approved
- the approved to setpublic AuthenticationHolderEntity getAuthenticationHolder()
public void setAuthenticationHolder(AuthenticationHolderEntity authenticationHolder)
authentication
- the authentication to setCopyright © 2018. All rights reserved.