Module org.snmp4j

Class AuthenticationFailureEvent<A extends Address>

  • All Implemented Interfaces:
    java.io.Serializable

    public class AuthenticationFailureEvent<A extends Address>
    extends java.util.EventObject
    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:
    3.0.6
    Author:
    Frank Fock
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      A getAddress()
      Returns the source address from which the message has been received.
      int getError()
      Returns the SNMP4J internal error status caused by the message.
      BERInputStream getMessage()
      Returns the message received.
      TransportMapping<? super A> getTransport()
      Returns the transport mapping over which the message has bee received.
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AuthenticationFailureEvent

        public AuthenticationFailureEvent​(TransportListener source,
                                          A sourceAddress,
                                          TransportMapping<? super A> 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 - the TransportMapping with which the message has been received.
        error - the SNMP4J MP error status caused by the message (see SnmpConstants).
        message - the message as received at the position where processing the message has stopped.
    • Method Detail

      • getTransport

        public TransportMapping<? super A> getTransport()
        Returns the transport mapping over which the message has bee received.
        Returns:
        a TransportMapping instance.
      • getMessage

        public BERInputStream getMessage()
        Returns the message received.
        Returns:
        a BERInputStream at 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

        public A getAddress()
        Returns the source address from which the message has been received.
        Returns:
        the source Address.