Skip to main content
summaryrefslogtreecommitdiffstats
blob: 69669c131988e836fe333fd4417f5ef8e66b241d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*******************************************************************************
 * Copyright (c) 2014 Boeing.
 * All rights reserved. This program and the accompanying materials
 * are 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:
 *     Boeing - initial API and implementation
 *******************************************************************************/
package org.eclipse.osee.jaxrs.server.internal.security.oauth2.provider;

import com.google.common.io.InputSupplier;
import java.io.InputStream;
import javax.ws.rs.core.UriInfo;
import org.apache.cxf.rs.security.oauth2.common.Client;
import org.eclipse.osee.framework.jdk.core.type.OseePrincipal;
import org.eclipse.osee.jaxrs.server.internal.security.oauth2.provider.endpoints.ClientFormData;

/**
 * @author Roberto E. Escobar
 */
public interface ClientProvider extends ClientLogoUriResolver {

   long getClientId(Client client);

   Client getClient(String clientId);

   Client createClient(UriInfo uriInfo, OseePrincipal principal, ClientFormData data);

   InputSupplier<InputStream> getClientLogoSupplier(UriInfo uriInfo, String applicationGuid);

}

Back to the top