org.cesecore.certificates.certificatetransparency.CTSubmissionConfigParams Maven / Gradle / Ivy
/*************************************************************************
* *
* CESeCore: CE Security Core *
* *
* This software is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public *
* License as published by the Free Software Foundation; either *
* version 2.1 of the License, or any later version. *
* *
* See terms of license at gnu.org. *
* *
*************************************************************************/
package org.cesecore.certificates.certificatetransparency;
import java.io.Serializable;
import java.util.Map;
/**
* Generic configuration parameters for the {@link CertificateTransparency#fetchSCTList} methods,
* that are not specific to the certificate profiles.
* @version $Id: CTSubmissionConfigParams.java 27506 2017-12-09 17:18:37Z samuellb $
*/
public final class CTSubmissionConfigParams implements Serializable {
private static final long serialVersionUID = 1L;
private Map configuredCTLogs;
private GoogleCtPolicy validityPolicy;
/**
* Contains definitions (URL, public key, etc.) of the logs that can be used.
*/
public Map getConfiguredCTLogs() {
return configuredCTLogs;
}
/**
* @see #getConfiguredCTLogs
*/
public void setConfiguredCTLogs(final Map configuredCTLogs) {
this.configuredCTLogs = configuredCTLogs;
}
/**
* Policy for setting min/max SCTs based on the validity
*/
public GoogleCtPolicy getValidityPolicy() {
return validityPolicy;
}
/**
* @see #getValidityPolicy
*/
public void setValidityPolicy(final GoogleCtPolicy validityPolicy) {
this.validityPolicy = validityPolicy;
}
}