com.clouway.oauth2.client.ServiceAccountRepository Maven / Gradle / Ivy
package com.clouway.oauth2.client;
import com.clouway.oauth2.jwt.Jwt;
import com.google.common.base.Optional;
/**
* ServiceAccountRepository is a repository which is responsible for retrieving of ServiceAccount's.
*
*
* @author Miroslav Genov ([email protected])
*/
public interface ServiceAccountRepository {
/**
* Finds ServiceAccount for the provided claimSet.
*
* @param claimSet the claim set of which service account is requested
* @return the ServiceAccount associated with the provided claim or absent value
*/
Optional findServiceAccount(Jwt.ClaimSet claimSet);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy