All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.couchbase.client.core.deps.org.xbill.DNS.dnssec.JustifiedSecStatus Maven / Gradle / Ivy

There is a newer version: 3.7.2
Show newest version
// SPDX-License-Identifier: BSD-3-Clause
package com.couchbase.client.core.deps.org.xbill.DNS.dnssec;

/**
 * Codes for DNSSEC security statuses along with a reason why the status was determined.
 *
 * @since 3.5
 */
final class JustifiedSecStatus {
  SecurityStatus status;
  int edeReason;
  String reason;

  /**
   * Creates a new instance of this class.
   *
   * @param status The security status.
   * @param reason The reason why the status was determined.
   */
  JustifiedSecStatus(SecurityStatus status, int edeReason, String reason) {
    this.status = status;
    this.edeReason = edeReason;
    this.reason = reason;
  }

  /**
   * Applies this security status to a response message.
   *
   * @param response The response to which to apply this status.
   */
  void applyToResponse(SMessage response) {
    response.setStatus(this.status, edeReason, this.reason);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy