1 11 package com.sun.jmx.snmp; 12 13 20 public interface SnmpUsmKeyHandler { 21 22 25 public static int DES_KEY_SIZE = 16; 26 27 30 public static int DES_DELTA_SIZE = 16; 31 32 39 public byte[] password_to_key(String algoName, String password) throws IllegalArgumentException ; 40 48 public byte[] localizeAuthKey(String algoName, byte[] key, SnmpEngineId engineId) throws IllegalArgumentException ; 49 50 59 public byte[] localizePrivKey(String algoName, byte[] key, SnmpEngineId engineId,int keysize) throws IllegalArgumentException ; 60 61 70 public byte[] calculateAuthDelta(String algoName, byte[] oldKey, byte[] newKey, byte[] random) throws IllegalArgumentException ; 71 72 82 public byte[] calculatePrivDelta(String algoName, byte[] oldKey, byte[] newKey, byte[] random, int deltaSize) throws IllegalArgumentException ; 83 84 } 85 | Popular Tags |