Remove unused provider yca fields
@@ -36,6 +36,7 @@ public class DomProviderBuilder extends DomGenericTargetBuilder<Provider> {
* Retrieves all possible provider specific parameters
*/
private static class ProviderReader {
+
final String type;
final String path;
final Double cacheWeight;
@@ -45,10 +46,6 @@ public class DomProviderBuilder extends DomGenericTargetBuilder<Provider> {
final Double connectionPoolTimeout;
final String clusterName;
final List<Node> nodes;
- final String certificateApplicationId;
- final Integer certificateTtl;
- final Integer certificateRetryWait;
- final Node certificateProxy; // Just re-using the Node class, as it matches our needs
final Integer cacheSizeMB;
ProviderReader(Element providerElement) {
@@ -62,10 +59,6 @@ public class DomProviderBuilder extends DomGenericTargetBuilder<Provider> {
connectionPoolTimeout = readConnectionPoolTimeout(providerElement);
retries = readRetries(providerElement);
nodes = readNodes(providerElement);
- certificateApplicationId = readCertificateApplicationId(providerElement);
- certificateTtl = readCertificateTtl(providerElement);
- certificateRetryWait = readCertificateRetryWait(providerElement);
- certificateProxy = readCertificateProxy(providerElement);
}
@@ -172,12 +165,6 @@ public class DomProviderBuilder extends DomGenericTargetBuilder<Provider> {
ChainSpecification specWithoutInnerComponents) {
ProviderReader providerReader = new ProviderReader(providerElement);
- if (providerReader.certificateApplicationId == null && providerReader.certificateProxy != null) {
- throw new IllegalArgumentException(
- "Provider '" + specWithoutInnerComponents.componentId +
- "' must have a certificate application ID, since a certificate store proxy is given");
- }
-
FederationOptions federationOptions = readFederationOptions(providerElement);
Provider provider = buildProvider(specWithoutInnerComponents, providerReader, federationOptions);
@@ -220,8 +207,7 @@ public class DomProviderBuilder extends DomGenericTargetBuilder<Provider> {
try {
ensureEmpty(specWithoutInnerSearchers.componentId, providerReader.cacheWeight, providerReader.path, providerReader.nodes,
providerReader.readTimeout, providerReader.connectionTimeout, providerReader.connectionPoolTimeout,
- providerReader.retries, providerReader.certificateApplicationId, providerReader.certificateTtl,
- providerReader.certificateRetryWait, providerReader.certificateProxy);
+ providerReader.retries);
return new LocalProvider(specWithoutInnerSearchers,
federationOptions,
