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

com.openshift.restclient.authorization.IAuthorizationClient Maven / Gradle / Ivy

/*******************************************************************************
 * Copyright (c) 2015 Red Hat, Inc. Distributed under license by Red Hat, Inc.
 * All rights reserved. This program is made available under the terms of the
 * Eclipse Public License v1.0 which accompanies this distribution, and is
 * available at http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors: Red Hat, Inc.
 ******************************************************************************/
package com.openshift.restclient.authorization;

import com.openshift.restclient.ISSLCertificateCallback;

/**
 * @author Jeff Cantrill
 */
public interface IAuthorizationClient {

	/**
	 * Retrieve a token for OpenShift.
	 * 
	 * @param baseURL
	 * @return
	 * @throws UnauthorizedException
	 */
	IAuthorizationContext getContext(final String baseURL);
	
	/**
	 * Retrieve the authorization details for a server
	 * 
	 * @param baseURL
	 * @return
	 */
	IAuthorizationDetails getAuthorizationDetails(String baseURL);
	
	/**
	 * Set the callback handler to use for certificate trust issues.
	 * @param callback
	 */
	void setSSLCertificateCallback(ISSLCertificateCallback callback);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy