com.capitalone.dashboard.service.ApiTokenService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-audit Show documentation
Show all versions of api-audit Show documentation
Hygieia Audit Rest API Layer
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