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.urn.opendaylight.lfm.lisp.proto.rev150820.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 use overwrite.
30 boolean shouldOverwrite();
33 * This method returns the authentication key of the address.
35 * @param address EID to look up
36 * @return The correct key.
38 String getAuthenticationKey(LispAddressContainer address);
40 void setShouldIterateMask(boolean shouldIterateMask);
42 void setShouldAuthenticate(boolean shouldAuthenticate);
44 void setOverwrite(boolean overwrite);
47 * This method removes the given authentication key from the map server.
49 * @param address EID to remove
51 void removeAuthenticationKey(LispAddressContainer address);
54 * This method adds an authentication key to the address.
56 * @param address EID to add
57 * @param key Value of the key for the EID
59 void addAuthenticationKey(LispAddressContainer address, String key);