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

com.capitalone.dashboard.service.ApiTokenService Maven / Gradle / Ivy

There is a newer version: 3.7.33
Show newest version
package com.capitalone.dashboard.service;

import com.capitalone.dashboard.misc.HygieiaException;
import com.capitalone.dashboard.model.ApiToken;
import com.capitalone.dashboard.util.EncryptionException;
import org.bson.types.ObjectId;

import java.util.Collection;

public interface ApiTokenService {
    Collection getApiTokens();
    String getApiToken(String apiUser, Long expirationDt) throws EncryptionException, HygieiaException;
    org.springframework.security.core.Authentication authenticate(String username, String password);
    /**
     * Deletes an existing Token .
     *
     * @param id unique identifier of Token to delete
     */
    void deleteToken(ObjectId id);

    /**
     * Updates expiration date of given token
     * @param expirationDt
     * @param id
     * @return
     * @throws HygieiaException
     */
    String updateToken(Long expirationDt, ObjectId id) throws HygieiaException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy