com.couchbase.client.core.deps.org.xbill.DNS.dnssec.JustifiedSecStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core-io Show documentation
Show all versions of core-io Show documentation
The official Couchbase JVM Core IO Library
// 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);
}
}