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

com.daedafusion.security.authentication.TokenExchange Maven / Gradle / Ivy

The newest version!
package com.daedafusion.security.authentication;

import java.util.List;

/**
 * Created by mphilpot on 7/11/14.
 */
public interface TokenExchange
{
    /**
     *
     * @param tokens array of tokens
     * @return valid subject if the exchange could be performed, null otherwise
     */
    Subject exchange(Token... tokens);

    /**
     *
     * @param subject
     * @return Token list
     */
    List exchange(Subject subject);

    /**
     *
     * @param token
     * @return true if successful, false otherwise
     */
    boolean destroyToken(Token token);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy