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

org.apereo.cas.ticket.query.SamlAttributeQueryTicketImpl Maven / Gradle / Ivy

There is a newer version: 7.2.0-RC3
Show newest version
package org.apereo.cas.ticket.query;

import org.apereo.cas.authentication.Authentication;
import org.apereo.cas.authentication.principal.Service;
import org.apereo.cas.ticket.AbstractTicket;
import org.apereo.cas.ticket.ExpirationPolicy;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serial;

/**
 * This is {@link SamlAttributeQueryTicketImpl}.
 *
 * @author Misagh Moayyed
 * @since 5.2.0
 */
@Getter
@NoArgsConstructor
@Setter
public class SamlAttributeQueryTicketImpl extends AbstractTicket implements SamlAttributeQueryTicket {

    @Serial
    private static final long serialVersionUID = 6276140828446447398L;

    private String relyingParty;

    private String object;

    /**
     * The {@link Authentication} this is associated with.
     */
    @JsonProperty("authentication")
    private Authentication authentication;

    /**
     * The service this ticket is valid for.
     */
    private Service service;

    public SamlAttributeQueryTicketImpl(final String id, final Service service,
                                        final ExpirationPolicy expirationPolicy,
                                        final String relyingParty, final String samlObject,
                                        final Authentication authentication) {
        super(id, expirationPolicy);
        this.service = service;
        this.relyingParty = relyingParty;
        this.object = samlObject;
        this.authentication = authentication;
    }

    @Override
    public String getPrefix() {
        return SamlAttributeQueryTicket.PREFIX;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy