1 package org.sonatype.aether.repository; 2 3 /******************************************************************************* 4 * Copyright (c) 2010-2011 Sonatype, Inc. 5 * All rights reserved. This program and the accompanying materials 6 * are made available under the terms of the Eclipse Public License v1.0 7 * which accompanies this distribution, and is available at 8 * http://www.eclipse.org/legal/epl-v10.html 9 *******************************************************************************/ 10 11 /** 12 * Selects authentication for a given remote repository. 13 * 14 * @author Benjamin Bentmann 15 */ 16 public interface AuthenticationSelector 17 { 18 19 /** 20 * Selects authentication for the specified remote repository. 21 * 22 * @param repository The repository for which to select authentication, must not be {@code null}. 23 * @return The selected authentication or {@code null} if none. 24 */ 25 Authentication getAuthentication( RemoteRepository repository ); 26 27 }