Authentication to southbound
[lispflowmapping.git] / mappingservice / api / src / main / java / org / opendaylight / lispflowmapping / interfaces / lisp / ILispAuthentication.java
1 /*
2  * Copyright (c) 2014 Contextream, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.lispflowmapping.interfaces.lisp;
9
10 import java.nio.ByteBuffer;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.MapNotify;
12
13 public interface ILispAuthentication {
14
15     boolean validate(ByteBuffer mapRegisterBuffer, byte[] expectedAuthData, String key);
16
17     byte[] getAuthenticationData(MapNotify mapNotify, String key);
18
19     int getAuthenticationLength();
20
21     int MAP_REGISTER_AND_NOTIFY_AUTHENTICATION_POSITION = 16;
22
23 }