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.implementation.authentication;
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;
14 public final class LispNoAuthentication implements ILispAuthentication {
16 private static final LispNoAuthentication INSTANCE = new LispNoAuthentication();
18 private static byte[] authenticationData;
20 public static LispNoAuthentication getInstance() {
24 private LispNoAuthentication() {
25 authenticationData = new byte[0];
28 public int getAuthenticationLength() {
32 public byte[] getAuthenticationData(MapNotify mapNotify, String key) {
33 return authenticationData;
36 public boolean validate(MapRegister mapRegister, String key) {