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

org.minidns.dnssec.DnssecMessage Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
/*
 * 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