
org.minidns.dnssec.DnssecMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of minidns-dnssec Show documentation
Show all versions of minidns-dnssec Show documentation
A DNS library for Java and Android systems
/*
* Copyright 2015-2018 the original author or authors
*
* This software is licensed under the Apache License, Version 2.0,
* the GNU Lesser General Public License version 2 or later ("LGPL")
* and the WTFPL.
* You may choose either license to govern your use of this software only
* upon the condition that you accept all of the terms of either
* the Apache License 2.0, the LGPL 2.1+ or the WTFPL.
*/
package org.minidns.dnssec;
import org.minidns.dnsmessage.DnsMessage;
import org.minidns.record.RRSIG;
import org.minidns.record.Record;
import java.util.Collections;
import java.util.Set;
public class DnssecMessage extends DnsMessage {
private final Set> signatures;
private final Set result;
DnssecMessage(DnsMessage.Builder copy, Set> signatures, Set unverifiedReasons) {
super(copy.setAuthenticData(unverifiedReasons == null || unverifiedReasons.isEmpty()));
this.signatures = Collections.unmodifiableSet(signatures);
this.result = unverifiedReasons == null ? Collections.emptySet() : Collections.unmodifiableSet(unverifiedReasons);
}
public Set> getSignatures() {
return signatures;
}
public Set getUnverifiedReasons() {
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy