2 * Copyright (c) 2014 Contextream, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.lispflowmapping.interfaces.lisp;
10 import org.opendaylight.yang.gen.v1.lispflowmapping.rev131031.lispaddress.LispAddressContainer;
13 * The general methods of the map server
15 public interface IGeneralMapServer {
18 * @return Should the map server use authentication.
20 boolean shouldAuthenticate();
23 * @return Should the map server use masking.
25 boolean shouldIterateMask();
28 * @return Should the map server overwrite Rlocs.
30 boolean shouldOverwriteRlocs();
33 * This method returns the authentication key of the address.
37 * @return The correct key.
39 String getAuthenticationKey(LispAddressContainer address, int maskLen);
41 void setShouldIterateMask(boolean shouldIterateMask);
43 void setShouldAuthenticate(boolean shouldAuthenticate);
45 void setShouldOverwriteRlocs(boolean shouldOverwriteRlocs);
48 * This method removes the given authentication key from the map server.
54 boolean removeAuthenticationKey(LispAddressContainer address, int maskLen);
57 * This method adds an authentication key to the address.
64 boolean addAuthenticationKey(LispAddressContainer address, int maskLen, String key);