1 11 package com.sun.jmx.snmp.internal; 12 13 import com.sun.jmx.trace.Trace; 14 15 import com.sun.jmx.snmp.SnmpTooBigException; 16 import com.sun.jmx.snmp.SnmpStatusException; 17 import com.sun.jmx.snmp.SnmpUnknownSecModelException; 18 import com.sun.jmx.snmp.SnmpSecurityException; 19 import com.sun.jmx.snmp.SnmpSecurityParameters; 20 21 26 public interface SnmpSecuritySubSystem extends SnmpSubSystem { 27 32 public SnmpSecurityCache createSecurityCache(int id) throws SnmpUnknownSecModelException; 33 38 public void releaseSecurityCache(int id, 39 SnmpSecurityCache cache) throws SnmpUnknownSecModelException; 40 41 58 public int generateRequestMsg(SnmpSecurityCache cache, 59 int version, 60 int msgID, 61 int msgMaxSize, 62 byte msgFlags, 63 int msgSecurityModel, 64 SnmpSecurityParameters params, 65 byte[] contextEngineID, 66 byte[] contextName, 67 byte[] data, 68 int dataLength, 69 byte[] outputBytes) 70 throws SnmpTooBigException, SnmpStatusException, SnmpSecurityException, SnmpUnknownSecModelException; 71 72 89 public int generateResponseMsg(SnmpSecurityCache cache, 90 int version, 91 int msgID, 92 int msgMaxSize, 93 byte msgFlags, 94 int msgSecurityModel, 95 SnmpSecurityParameters params, 96 byte[] contextEngineID, 97 byte[] contextName, 98 byte[] data, 99 int dataLength, 100 byte[] outputBytes) 101 throws SnmpTooBigException, SnmpStatusException, 102 SnmpSecurityException, SnmpUnknownSecModelException; 103 121 public SnmpSecurityParameters 122 processIncomingRequest(SnmpSecurityCache cache, 123 int version, 124 int msgID, 125 int msgMaxSize, 126 byte msgFlags, 127 int msgSecurityModel, 128 byte[] params, 129 byte[] contextEngineID, 130 byte[] contextName, 131 byte[] data, 132 byte[] encryptedPdu, 133 SnmpDecryptedPdu decryptedPdu) 134 throws SnmpStatusException, SnmpSecurityException, SnmpUnknownSecModelException; 135 153 public SnmpSecurityParameters processIncomingResponse(SnmpSecurityCache cache, 154 int version, 155 int msgID, 156 int msgMaxSize, 157 byte msgFlags, 158 int msgSecurityModel, 159 byte[] params, 160 byte[] contextEngineID, 161 byte[] contextName, 162 byte[] data, 163 byte[] encryptedPdu, 164 SnmpDecryptedPdu decryptedPdu) 165 throws SnmpStatusException, SnmpSecurityException, SnmpUnknownSecModelException; 166 } 167 | Popular Tags |