Class LispMACAuthentication
- java.lang.Object
-
- org.opendaylight.lispflowmapping.lisp.authentication.LispMACAuthentication
-
- All Implemented Interfaces:
ILispAuthentication
public class LispMACAuthentication extends java.lang.Object implements ILispAuthentication
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
algorithm
protected static org.slf4j.Logger
LOG
-
Fields inherited from interface org.opendaylight.lispflowmapping.lisp.authentication.ILispAuthentication
MAP_REGISTER_AND_NOTIFY_AUTHENTICATION_POSITION
-
-
Constructor Summary
Constructors Constructor Description LispMACAuthentication(java.lang.String algorithm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAlgorithm()
protected byte[]
getAuthenticationData(byte[] data, java.lang.String key)
byte[]
getAuthenticationData(java.nio.ByteBuffer buffer, java.lang.String key)
int
getAuthenticationLength()
void
setAlgorithm(java.lang.String algorithm)
boolean
validate(java.nio.ByteBuffer mapRegisterBuffer, byte[] expectedAuthData, java.lang.String key)
-
-
-
Method Detail
-
validate
public boolean validate(java.nio.ByteBuffer mapRegisterBuffer, byte[] expectedAuthData, java.lang.String key)
- Specified by:
validate
in interfaceILispAuthentication
-
getAuthenticationData
protected byte[] getAuthenticationData(byte[] data, java.lang.String key)
-
getAuthenticationData
public byte[] getAuthenticationData(java.nio.ByteBuffer buffer, java.lang.String key)
- Specified by:
getAuthenticationData
in interfaceILispAuthentication
-
getAuthenticationLength
public int getAuthenticationLength()
- Specified by:
getAuthenticationLength
in interfaceILispAuthentication
-
getAlgorithm
public java.lang.String getAlgorithm()
-
setAlgorithm
public void setAlgorithm(java.lang.String algorithm)
-
-