Skip to main content
diff options
authorMykola Nikishov2016-04-21 15:59:26 -0400
committerMykola Nikishov2019-07-08 13:47:43 -0400
commit568ec2758ef480b7a69dc8572bf80fa8f1b281b2 (patch)
tree60b685ade900b9b5463fc7710d9362e1e4dab6c2 /pom.xml
parent2bcad99a06945190c7baff4268f9fc459bc34dfd (diff)
Extend o.e.e.p2.artifact.repository.artifactChecksums extension point with attribute providerName to support custom MessageDigest implementations as per Java Security API. To get an instance of custom MessageDigest in ChecksumProducer's getMessageDigest(String, String), look for service object under interface filtered by providerName property and pass it to's getInstance(String, Provider). Throws NoSuchProviderException if no such service was found. Bundle that contributes such implementation should register it with the Framework service registry under interface The registration properties of the service should contain property 'providerName' with value of type String as returned by implementation's The same value should be used for providerName attribute in artifactChecksums extension point. o.e.equinox.p2.artifact.checksums.bouncycastle bundle demonstrates how this works by adding support for Whirlpool and DSTU7564 message digests using the Bouncy Castle Crypto APIs [1]. It is not part of the distribution and used by unit tests only. [1] Change-Id: I0cfd06ceca6e1911d69bab09331399500a00dcee Signed-off-by: Mykola Nikishov <>
Diffstat (limited to 'pom.xml')
1 files changed, 3 insertions, 1 deletions
diff --git a/pom.xml b/pom.xml
index 375951639..48d874851 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
- Copyright (c) 2012 Eclipse Foundation.
+ Copyright (c) 2012, 2019 Eclipse Foundation.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Distribution License v1.0
which accompanies this distribution, and is available at
@@ -166,6 +166,8 @@
+ <module>bundles/org.eclipse.equinox.p2.artifact.checksums.bouncycastle</module>

Back to the top