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

org.pac4j.cas.store.ProxyGrantingTicketStore Maven / Gradle / Ivy

There is a newer version: 6.1.0
Show newest version
package org.pac4j.cas.store;

import lombok.Getter;
import lombok.ToString;
import org.apereo.cas.client.proxy.ProxyGrantingTicketStorage;
import org.pac4j.core.store.Store;

/**
 * Apereo CAS client {@link ProxyGrantingTicketStorage} wrapper of a pac4j {@link Store}.
 *
 * @author Jerome Leleu
 * @since 2.0.0
 */
@ToString
public class ProxyGrantingTicketStore implements ProxyGrantingTicketStorage {

    @Getter
    private final Store store;

    /**
     * 

Constructor for ProxyGrantingTicketStore.

* * @param store a {@link Store} object */ public ProxyGrantingTicketStore(final Store store) { this.store = store; } /** {@inheritDoc} */ @Override public void save(final String proxyGrantingTicketIou, final String proxyGrantingTicket) { store.set(proxyGrantingTicketIou, proxyGrantingTicket); } /** {@inheritDoc} */ @Override public String retrieve(final String proxyGrantingTicketIou) { return store.get(proxyGrantingTicketIou).orElse(null); } /** {@inheritDoc} */ @Override public void cleanUp() { // never called } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy