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

net.klakegg.pkix.ocsp.OcspResult Maven / Gradle / Ivy

package net.klakegg.pkix.ocsp;

import java.math.BigInteger;
import java.security.cert.X509Certificate;
import java.util.Collections;
import java.util.Map;

/**
 * @author erlend
 */
public class OcspResult {

    protected static final OcspResult EMPTY = new OcspResult(Collections.emptyMap());

    private final Map map;

    protected OcspResult(Map map) {
        this.map = Collections.unmodifiableMap(map);
    }

    public CertificateResult get(BigInteger serialNumber) {
        return map.get(serialNumber);
    }

    public CertificateResult get(X509Certificate certificate) {
        return get(certificate.getSerialNumber());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy