Package org.apereo.cas.ticket.device
Interface OAuth20DeviceUserCode
- All Superinterfaces:
Comparable<org.apereo.cas.ticket.Ticket>,Serializable,org.apereo.cas.ticket.Ticket
public interface OAuth20DeviceUserCode
extends org.apereo.cas.ticket.Ticket
This is
OAuth20DeviceUserCode.- Since:
- 6.0.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidApprove user code.Gets device code.booleanIndicate whether the provided user code is approved by the end-user.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.apereo.cas.ticket.Ticket
getCountOfUses, getCreationTime, getExpirationPolicy, getId, getLastTimeUsed, getPrefix, getPreviousTimeUsed, isExpired, markTicketExpired, update
-
Field Details
-
PREFIX
Prefix generally applied to unique ids.- See Also:
-
-
Method Details
-
isUserCodeApproved
boolean isUserCodeApproved()Indicate whether the provided user code is approved by the end-user.- Returns:
- true/false
-
approveUserCode
void approveUserCode()Approve user code. -
getDeviceCode
String getDeviceCode()Gets device code.- Returns:
- the device code
-