1 20 21 22 23 package org.snmp4j.event; 24 25 import java.util.EventObject ; 26 import org.snmp4j.smi.Address; 27 import org.snmp4j.TransportMapping; 28 import org.snmp4j.asn1.BERInputStream; 29 import org.snmp4j.mp.SnmpConstants; 31 32 41 public class AuthenticationFailureEvent extends EventObject { 42 43 private static final long serialVersionUID = -8623553792794471405L; 44 45 private Address address; 46 private transient TransportMapping transport; 47 private BERInputStream message; 48 private int error; 49 50 66 public AuthenticationFailureEvent(Object source, 67 Address sourceAddress, 68 TransportMapping transport, 69 int error, 70 BERInputStream message) { 71 super(source); 72 this.address = sourceAddress; 73 this.transport = transport; 74 this.error = error; 75 this.message = message; 76 } 77 78 83 public TransportMapping getTransport() { 84 return transport; 85 } 86 87 93 public BERInputStream getMessage() { 94 return message; 95 } 96 97 102 public int getError() { 103 return error; 104 } 105 106 111 public Address getAddress() { 112 return address; 113 } 114 115 } 116 | Popular Tags |