org.apereo.cas.ticket.device.OAuth20DeviceUserCode Maven / Gradle / Ivy
The newest version!
package org.apereo.cas.ticket.device;
import org.apereo.cas.authentication.principal.Service;
import org.apereo.cas.ticket.Ticket;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
/**
* This is {@link OAuth20DeviceUserCode}.
*
* @author Misagh Moayyed
* @since 6.0.0
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS)
public interface OAuth20DeviceUserCode extends Ticket {
/**
* Prefix generally applied to unique ids.
*/
String PREFIX = "ODUC";
/**
* Indicate whether the provided user code is approved
* by the end-user.
*
* @return true/false
*/
boolean isUserCodeApproved();
/**
* Approve user code.
*
* @param approved the approved
*/
void setUserCodeApproved(boolean approved);
/**
* Gets service.
*
* @return the service
*/
Service getService();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy