1
2
3
4
5
6
7
8 package org.opendaylight.lispflowmapping.implementation.authentication;
9
10 import org.opendaylight.lispflowmapping.interfaces.lisp.ILispAuthentication;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.MapNotify;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.MapRegister;
13
14 public final class LispNoAuthentication implements ILispAuthentication {
15
16 private static final LispNoAuthentication INSTANCE = new LispNoAuthentication();
17
18 private static byte[] authenticationData;
19
20 public static LispNoAuthentication getInstance() {
21 return INSTANCE;
22 }
23
24 private LispNoAuthentication() {
25 authenticationData = new byte[0];
26 }
27
28 public int getAuthenticationLength() {
29 return 0;
30 }
31
32 public byte[] getAuthenticationData(MapNotify mapNotify, String key) {
33 return authenticationData;
34 }
35
36 public boolean validate(MapRegister mapRegister, String key) {
37 return true;
38 }
39
40 }