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

com.sap.cloud.security.xsuaa.extractor.TokenBroker Maven / Gradle / Ivy

There is a newer version: 3.5.3
Show newest version
package com.sap.cloud.security.xsuaa.extractor;

/**
 *
 *
 */
public interface TokenBroker {


	/**
	 * Exchange clientid, client secret against a OAuth token
	 * 
	 * @param tokenURL
	 *            tokenURL
	 * @param clientId
	 *            clientId
	 * @param clientSecret
	 *            clientSecret
	 * @return String
	 * @throws TokenBrokerException
	 *             TokenBrokerException
	 */
	public String getAccessTokenFromClientCredentials(String tokenURL, String clientId, String clientSecret) throws TokenBrokerException;


	/**
	 * Exchange username, password, client id, client secret against a token
	 * 
	 * @param tokenURL
	 *            tokenURL
	 * @param clientId
	 *            clientId
	 * @param clientSecret
	 *            clientSecret
	 * @param username
	 *            username
	 * @param password
	 *            password
	 * @return String
	 * @throws TokenBrokerException
	 *             TokenBrokerException
	 */
	public String getAccessTokenFromPasswordCredentials(String tokenURL, String clientId, String clientSecret, String username, String password) throws TokenBrokerException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy