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.Stringalgorithmprotected static org.slf4j.LoggerLOG-
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.StringgetAlgorithm()protected byte[]getAuthenticationData(byte[] data, java.lang.String key)byte[]getAuthenticationData(java.nio.ByteBuffer buffer, java.lang.String key)intgetAuthenticationLength()voidsetAlgorithm(java.lang.String algorithm)booleanvalidate(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:
validatein 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:
getAuthenticationDatain interfaceILispAuthentication
-
getAuthenticationLength
public int getAuthenticationLength()
- Specified by:
getAuthenticationLengthin interfaceILispAuthentication
-
getAlgorithm
public java.lang.String getAlgorithm()
-
setAlgorithm
public void setAlgorithm(java.lang.String algorithm)
-
-