Package org.snmp4j.event
Class AuthenticationFailureEvent
java.lang.Object
java.util.EventObject
org.snmp4j.event.AuthenticationFailureEvent
- All Implemented Interfaces:
 Serializable
The 
AuthenticationFailureEvent class describes the source
 and type of an authentication failure as well as the message that caused
 the error.- Since:
 - 1.5
 - Version:
 - 1.5
 - Author:
 - Frank Fock
 - See Also:
 
- 
Field Summary
Fields inherited from class java.util.EventObject
source - 
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationFailureEvent(TransportListener source, Address sourceAddress, TransportMapping transport, int error, BERInputStream message) Creates an authentication failure event. - 
Method Summary
Modifier and TypeMethodDescriptionReturns the source address from which the message has been received.intgetError()Returns the SNMP4J internal error status caused by the message.Returns the message received.Returns the transport mapping over which the message has bee received.Methods inherited from class java.util.EventObject
getSource, toString 
- 
Constructor Details
- 
AuthenticationFailureEvent
public AuthenticationFailureEvent(TransportListener source, Address sourceAddress, TransportMapping transport, int error, BERInputStream message) Creates an authentication failure event.- Parameters:
 source- the instance that generated the event.sourceAddress- the address from where the failed message has been received.transport- theTransportMappingwith which the message has been received.error- the SNMP4J MP error status caused by the message (seeSnmpConstants).message- the message as received at the position where processing the message has stopped.
 
 - 
 - 
Method Details
- 
getTransport
Returns the transport mapping over which the message has bee received.- Returns:
 - a 
TransportMappinginstance. 
 - 
getMessage
Returns the message received.- Returns:
 - a 
BERInputStreamat the position where processing of the message has stopped. 
 - 
getError
public int getError()Returns the SNMP4J internal error status caused by the message.- Returns:
 - the error status.
 
 - 
getAddress
Returns the source address from which the message has been received.- Returns:
 - the source 
Address. 
 
 -