X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fnetconf-auth%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Fauth%2FAuthProvider.java;fp=opendaylight%2Fnetconf%2Fnetconf-auth%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Fauth%2FAuthProvider.java;h=0ae74239b3f5a33dbe89fd63f2c9091eaf7fe900;hb=5bfabd740dcebd73f9b25e904a21689b78f2a3f1;hp=0000000000000000000000000000000000000000;hpb=597deaeac655af6bff79cb892165a1d5a32ea826;p=controller.git diff --git a/opendaylight/netconf/netconf-auth/src/main/java/org/opendaylight/controller/netconf/auth/AuthProvider.java b/opendaylight/netconf/netconf-auth/src/main/java/org/opendaylight/controller/netconf/auth/AuthProvider.java new file mode 100644 index 0000000000..0ae74239b3 --- /dev/null +++ b/opendaylight/netconf/netconf-auth/src/main/java/org/opendaylight/controller/netconf/auth/AuthProvider.java @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2014 Cisco Systems, Inc. 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.controller.netconf.auth; + +/** + * Authentication Service definition for netconf. + */ +public interface AuthProvider { + + /** + * Authenticate user by username/password. + * + * @param username username + * @param password password + * @return true if authentication is successful, false otherwise + */ + boolean authenticated(String username, String password); + +}