public boolean equals(Object obj) { if (obj instanceof Context) { return context.equals(((Context)obj).context); } return false; }
public boolean equals(Object obj) { if (obj instanceof Context) { return context.equals(((Context)obj).context); } return false; }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; org.snmp4j.transport.tls.SecurityNameMapping that = (org.snmp4j.transport.tls.SecurityNameMapping) o; if (data != null ? !data.equals(that.data) : that.data != null) return false; if (fingerprint != null ? !fingerprint.equals(that.fingerprint) : that.fingerprint != null) return false; if (type != that.type) return false; return true; }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; org.snmp4j.transport.tls.SecurityNameMapping that = (org.snmp4j.transport.tls.SecurityNameMapping) o; if (data != null ? !data.equals(that.data) : that.data != null) return false; if (fingerprint != null ? !fingerprint.equals(that.fingerprint) : that.fingerprint != null) return false; if (type != that.type) return false; return true; }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; UserTarget that = (UserTarget) o; if (authoritativeEngineID != null ? !authoritativeEngineID.equals(that.authoritativeEngineID) : that.authoritativeEngineID != null) return false; return true; }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SessionID sessionID = (SessionID) o; if (address != null ? !address.equals(sessionID.address) : sessionID.address != null) return false; return !(tmSecurityName != null ? !tmSecurityName.equals(sessionID.tmSecurityName) : sessionID.tmSecurityName != null); }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; UserTarget that = (UserTarget) o; if (authoritativeEngineID != null ? !authoritativeEngineID.equals(that.authoritativeEngineID) : that.authoritativeEngineID != null) return false; return true; }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; DHKickstartParametersImpl that = (DHKickstartParametersImpl) o; if (!getSecurityName().equals(that.getSecurityName())) return false; return getPublicKey().equals(that.getPublicKey()); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!this.getClass().isInstance(obj)) { return false; } OidWithContext other = (OidWithContext)obj; return oid.equals(other.getOid()) && context.equals(other.getContext()); }
public boolean isCovered(MOScope other) { if ((context != null) && (other instanceof MOContextScope)) { if (!context.equals(((MOContextScope)other).getContext())) { return false; } } return covers(this, other); }
public boolean isCovered(MOScope other) { if ((context != null) && (other instanceof MOContextScope)) { if (!context.equals(((MOContextScope)other).getContext())) { return false; } } return covers(this, other); }
public synchronized UsmTimeEntry getTime(OctetString engineID) { if (localTime.getEngineID().equals(engineID)) { return getLocalTime(); } UsmTimeEntry found = table.get(engineID); if (found == null) { return null; } return new UsmTimeEntry(engineID, found.getEngineBoots(), found.getTimeDiff() + (int) (System.nanoTime() / TIME_PRECISION)); }
public boolean passesFilter(DefaultMOMutableRow2PC row) { Integer32 rs = (Integer32) row.getValue(idxSnmpNotifyFilterProfileRowStatus); if (rs == null) { return false; } return ((rs.getValue() == RowStatus.active) && filterName.equals(row.getValue(idxSnmpNotifyFilterProfileName))); } };
public boolean passesFilter(MOTableRow row) { Integer32 rs = (Integer32) row.getValue(idxSnmpNotifyFilterProfileRowStatus); if (rs == null) { return false; } return ((rs.getValue() == RowStatus.active) && filterName.equals(row.getValue(idxSnmpNotifyFilterProfileName))); } };
public boolean passesFilter(MOTableRow row) { Integer32 rs = (Integer32) row.getValue(idxSnmpNotifyFilterProfileRowStatus); if (rs == null) { return false; } return ((rs.getValue() == RowStatus.active) && filterName.equals(row.getValue(idxSnmpNotifyFilterProfileName))); } };
public boolean passesFilter(DefaultMOMutableRow2PC row) { Integer32 rs = (Integer32) row.getValue(idxSnmpNotifyFilterProfileRowStatus); if (rs == null) { return false; } return ((rs.getValue() == RowStatus.active) && filterName.equals(row.getValue(idxSnmpNotifyFilterProfileName))); } };
public synchronized UsmTimeEntry getTime(OctetString engineID) { if (localTime.getEngineID().equals(engineID)) { return getLocalTime(); } UsmTimeEntry found = table.get(engineID); if (found == null) { return null; } return new UsmTimeEntry(engineID, found.getEngineBoots(), found.getTimeDiff() + (int) (System.nanoTime() / TIME_PRECISION)); }
public synchronized UsmTimeEntry getTime(OctetString engineID) { if (localTime.getEngineID().equals(engineID)) { return getLocalTime(); } UsmTimeEntry found = (UsmTimeEntry) table.get(engineID); if (found == null) { return null; } return new UsmTimeEntry(engineID, found.getEngineBoots(), found.getTimeDiff() + (int) (System.currentTimeMillis() / 1000)); }
@Override public synchronized void save(MOOutput output) throws IOException { OctetString engineID = getValue(); if (engineID == null || engineID.equals(snmpEngineID)) { output.writeVariable(new OctetString()); } else { super.save(output); } } }
public void prepare(SubRequest subRequest, MOTableRow row, MOTableRow changeSet, int column) { Variable[] indexValues = ((UsmMIB.UsmTableRow)row).getIndexDef().getIndexValues(row.getIndex()); OctetString userName = (OctetString) indexValues[1]; if ((!subRequest.getRequest().getSecurityName().equals(userName)) || subRequest.getRequest().getSecurityModel() != SecurityModel.SECURITY_MODEL_USM) { subRequest.getStatus().setErrorStatus(PDU.noAccess); } else { super.prepare(subRequest, row, changeSet, column); } }