org.opendaylight.netconf.callhome.protocol.CallHomeAuthorizationProvider Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2016 Brocade Communication Systems and others. 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
*/
package org.opendaylight.netconf.callhome.protocol;
import java.net.SocketAddress;
import java.security.PublicKey;
import org.eclipse.jdt.annotation.NonNull;
/**
* Provider responsible for resolving CallHomeAuthorization.
*/
public interface CallHomeAuthorizationProvider {
/**
* Provides authorization parameters for incoming call-home connection.
*
* @param remoteAddress Remote socket address of incoming connection
* @param serverKey SSH key provided by SSH server on incoming connection
* @return {@link CallHomeAuthorization} with authorization information.
*/
@NonNull CallHomeAuthorization provideAuth(@NonNull SocketAddress remoteAddress, @NonNull PublicKey serverKey);
}