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

com.yodlee.sdk.builder.ClientCredentialAdminContextBuilder Maven / Gradle / Ivy

There is a newer version: 1.0.29.beta1
Show newest version
/**
 * Copyright (c) 2019 Yodlee, Inc. All Rights Reserved.
 *
 * Licensed under the MIT License. See LICENSE file in the project root for license information.
 */
package com.yodlee.sdk.builder;

import com.yodlee.sdk.api.AuthApi;
import com.yodlee.sdk.api.exception.ApiException;
import com.yodlee.sdk.configuration.cobrand.ClientCredentialAdminConfiguration;
import com.yodlee.sdk.context.ClientCredentialAdminContext;

public class ClientCredentialAdminContextBuilder implements Builder {

	@Override
	public ClientCredentialAdminContext build(ClientCredentialAdminConfiguration clientCredentialConfiguration)
			throws ApiException {
		ConfigValidationUtil.validateConfig(clientCredentialConfiguration);
		AuthApi authApi = new AuthApi(clientCredentialConfiguration);
		authApi.generateAccessToken();
		return (ClientCredentialAdminContext) authApi.getContext();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy