1 20 21 22 23 24 25 package org.snmp4j.security; 26 27 import org.snmp4j.smi.OID; 28 import org.snmp4j.smi.OctetString; 29 30 37 public interface AuthenticationProtocol extends SecurityProtocol { 38 39 int MESSAGE_AUTHENTICATION_CODE_LENGTH = 12; 40 41 64 boolean authenticate(byte[] authenticationKey, 65 byte[] message, 66 int messageOffset, 67 int messageLength, 68 ByteArrayWindow digest); 69 70 100 boolean isAuthentic(byte[] authenticationKey, 101 byte[] message, 102 int messageOffset, 103 int messageLength, 104 ByteArrayWindow digest); 105 106 107 123 byte[] changeDelta(byte[] oldKey, 124 byte[] newKey, 125 byte[] random); 126 127 132 OID getID(); 133 134 144 byte[] passwordToKey(OctetString passwordString, byte[] engineID); 145 146 154 byte[] hash(byte[] data); 155 156 168 byte[] hash(byte[] data, int offset, int length); 169 170 179 int getDigestLength(); 180 } 181 182 | Popular Tags |