public class LispMACAuthentication extends Object implements ILispAuthentication
Modifier and Type | Field and Description |
---|---|
protected String |
algorithm |
protected static org.slf4j.Logger |
LOG |
MAP_REGISTER_AND_NOTIFY_AUTHENTICATION_POSITION
Constructor and Description |
---|
LispMACAuthentication(String algorithm) |
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm() |
protected byte[] |
getAuthenticationData(byte[] data,
String key) |
byte[] |
getAuthenticationData(ByteBuffer buffer,
String key) |
int |
getAuthenticationLength() |
void |
setAlgorithm(String algorithm) |
boolean |
validate(ByteBuffer mapRegisterBuffer,
byte[] expectedAuthData,
String key) |
protected static final org.slf4j.Logger LOG
protected String algorithm
public LispMACAuthentication(String algorithm)
public boolean validate(ByteBuffer mapRegisterBuffer, byte[] expectedAuthData, String key)
validate
in interface ILispAuthentication
protected byte[] getAuthenticationData(byte[] data, String key)
public byte[] getAuthenticationData(ByteBuffer buffer, String key)
getAuthenticationData
in interface ILispAuthentication
public int getAuthenticationLength()
getAuthenticationLength
in interface ILispAuthentication
public String getAlgorithm()
public void setAlgorithm(String algorithm)
Copyright © 2019 OpenDaylight. All rights reserved.