Package org.snmp4j
Class TransportStateReference
java.lang.Object
org.snmp4j.TransportStateReference
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
 
- 
Constructor Summary
ConstructorsConstructorDescriptionTransportStateReference(TransportMapping transport, Address address, OctetString securityName, SecurityLevel requestedSecurityLevel, SecurityLevel transportSecurityLevel, boolean sameSecurity, Object sessionID) TransportStateReference(TransportMapping transport, Address address, OctetString securityName, SecurityLevel requestedSecurityLevel, SecurityLevel transportSecurityLevel, boolean sameSecurity, Object sessionID, CertifiedIdentity certifiedIdentity)  - 
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanChecks if transport, address, securityName and transportSecurityLevel are valid (not null).voidsetRequestedSecurityLevel(SecurityLevel requestedSecurityLevel) voidsetSameSecurity(boolean sameSecurity) voidsetSecurityName(OctetString securityName) voidsetTransportSecurityLevel(SecurityLevel transportSecurityLevel) toString() 
- 
Constructor Details
- 
TransportStateReference
public TransportStateReference(TransportMapping transport, Address address, OctetString securityName, SecurityLevel requestedSecurityLevel, SecurityLevel transportSecurityLevel, boolean sameSecurity, Object sessionID)  - 
TransportStateReference
public TransportStateReference(TransportMapping transport, Address address, OctetString securityName, SecurityLevel requestedSecurityLevel, SecurityLevel transportSecurityLevel, boolean sameSecurity, Object sessionID, CertifiedIdentity certifiedIdentity)  
 - 
 - 
Method Details
- 
getTransport
 - 
getAddress
 - 
getSecurityName
 - 
getRequestedSecurityLevel
 - 
getTransportSecurityLevel
 - 
isSameSecurity
public boolean isSameSecurity() - 
getSessionID
 - 
setSecurityName
 - 
setRequestedSecurityLevel
 - 
setTransportSecurityLevel
 - 
setSameSecurity
public void setSameSecurity(boolean sameSecurity)  - 
getCertifiedIdentity
 - 
isTransportSecurityValid
public boolean isTransportSecurityValid()Checks if transport, address, securityName and transportSecurityLevel are valid (not null).- Returns:
 trueif the above fields are notnull.
 - 
toString
 
 -