Module org.snmp4j
Package org.snmp4j

Class TransportStateReference


  • public class TransportStateReference
    extends java.lang.Object
    The TransportStateReference class holds information defined by RFC 5343 for the tmStateReference ASI elements. Objects of this class are cached by security aware TransportMappings and transport aware SecurityModels.
    Since:
    2.0
    Version:
    2.0
    Author:
    Frank Fock
    • Method Detail

      • getAddress

        public Address getAddress()
      • getSecurityName

        public OctetString getSecurityName()
      • getRequestedSecurityLevel

        public SecurityLevel getRequestedSecurityLevel()
      • getTransportSecurityLevel

        public SecurityLevel getTransportSecurityLevel()
      • isSameSecurity

        public boolean isSameSecurity()
      • getSessionID

        public java.lang.Object getSessionID()
      • setSecurityName

        public void setSecurityName​(OctetString securityName)
      • setRequestedSecurityLevel

        public void setRequestedSecurityLevel​(SecurityLevel requestedSecurityLevel)
      • setTransportSecurityLevel

        public void setTransportSecurityLevel​(SecurityLevel transportSecurityLevel)
      • setSameSecurity

        public void setSameSecurity​(boolean sameSecurity)
      • isTransportSecurityValid

        public boolean isTransportSecurityValid()
        Checks if transport, address, securityName and transportSecurityLevel are valid (not null).
        Returns:
        true if the above fields are not null.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object