All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apereo.cas.ticket.device.OAuth20DeviceToken Maven / Gradle / Ivy

There is a newer version: 7.2.0-RC4
Show 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 OAuth20DeviceToken}.
 *
 * @author Misagh Moayyed
 * @since 6.0.0
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS)
public interface OAuth20DeviceToken extends Ticket {
    /**
     * Prefix generally applied to unique ids.
     */
    String PREFIX = "ODT";

    /**
     * Gets service.
     *
     * @return the service
     */
    Service getService();

    /**
     * Gets user code.
     *
     * @return the user code
     */
    String getUserCode();

    /**
     * Assign user code.
     *
     * @param userCode the user code
     */
    void setUserCode(String userCode);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy