@Service(value="defaultDeviceCodeService") public class DefaultDeviceCodeService extends Object implements DeviceCodeService
Constructor and Description |
---|
DefaultDeviceCodeService() |
Modifier and Type | Method and Description |
---|---|
DeviceCode |
approveDeviceCode(DeviceCode dc,
org.springframework.security.oauth2.provider.OAuth2Authentication auth) |
void |
clearDeviceCode(String deviceCode,
org.springframework.security.oauth2.provider.ClientDetails client) |
void |
clearExpiredDeviceCodes() |
DeviceCode |
createNewDeviceCode(Set<String> requestedScopes,
ClientDetailsEntity client,
Map<String,String> parameters) |
DeviceCode |
findDeviceCode(String deviceCode,
org.springframework.security.oauth2.provider.ClientDetails client) |
DeviceCode |
lookUpByUserCode(String userCode) |
public DefaultDeviceCodeService()
public DeviceCode createNewDeviceCode(Set<String> requestedScopes, ClientDetailsEntity client, Map<String,String> parameters)
createNewDeviceCode
in interface DeviceCodeService
public DeviceCode lookUpByUserCode(String userCode)
lookUpByUserCode
in interface DeviceCodeService
public DeviceCode approveDeviceCode(DeviceCode dc, org.springframework.security.oauth2.provider.OAuth2Authentication auth)
approveDeviceCode
in interface DeviceCodeService
public DeviceCode findDeviceCode(String deviceCode, org.springframework.security.oauth2.provider.ClientDetails client)
findDeviceCode
in interface DeviceCodeService
@Transactional(value="defaultTransactionManager") public void clearExpiredDeviceCodes()
clearExpiredDeviceCodes
in interface DeviceCodeService
public void clearDeviceCode(String deviceCode, org.springframework.security.oauth2.provider.ClientDetails client)
clearDeviceCode
in interface DeviceCodeService
Copyright © 2018. All rights reserved.