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

pl.edu.icm.unity.oauth.rp.AccessTokenExchange Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2014 ICM Uniwersytet Warszawski All rights reserved.
 * See LICENCE.txt file for licensing information.
 */
package pl.edu.icm.unity.oauth.rp;

import com.nimbusds.oauth2.sdk.token.BearerAccessToken;

import pl.edu.icm.unity.engine.api.authn.AuthenticationException;
import pl.edu.icm.unity.engine.api.authn.AuthenticationResult;
import pl.edu.icm.unity.engine.api.authn.CredentialExchange;

/**
 * Interface for validation of an access token obtained by a credential retrieval.
 * @author K. Benedyczak
 */
public interface AccessTokenExchange extends CredentialExchange
{
	public static final String ID = "access token exchange";
	
	public AuthenticationResult checkToken(BearerAccessToken token) throws AuthenticationException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy