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

org.eclipse.edc.identityhub.spi.authentication.ServicePrincipalResolver Maven / Gradle / Ivy

The newest version!
/*
 *  Copyright (c) 2024 Metaform Systems, Inc.
 *
 *  This program and the accompanying materials are made available under the
 *  terms of the Apache License, Version 2.0 which is available at
 *  https://www.apache.org/licenses/LICENSE-2.0
 *
 *  SPDX-License-Identifier: Apache-2.0
 *
 *  Contributors:
 *       Metaform Systems, Inc. - initial API and implementation
 *
 */

package org.eclipse.edc.identityhub.spi.authentication;

/**
 * Resolves {@link ServicePrincipal} objects during request ingress.
 */
@FunctionalInterface
public interface ServicePrincipalResolver {
    /**
     * resolve the user based on the credential (e.g. API key)
     */
    ServicePrincipal findByCredential(String credential);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy