Skip to content

Commit f31250b

Browse files
author
Greg Meyer
authored
Merge pull request #5 from DirectProjectJavaRI/develop
6.0.1 Release
2 parents 2c42eef + d603f38 commit f31250b

17 files changed

Lines changed: 1274 additions & 11 deletions

pom.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<artifactId>agent</artifactId>
66
<name>Direct Project Security And Trust Agent</name>
7-
<version>6.0</version>
7+
<version>6.0.1</version>
88
<description>Direct Project Security And Trust Agent</description>
99
<inceptionYear>2010</inceptionYear>
1010
<url>https://github.com/DirectProjectJavaRI/agent</url>
@@ -49,17 +49,17 @@
4949
<name>New BSD License</name>
5050
<url>http://nhindirect.org/BSDLicense</url>
5151
</license>
52-
</licenses>
52+
</licenses>
5353
<dependencies>
5454
<dependency>
5555
<groupId>org.nhind</groupId>
5656
<artifactId>direct-policy</artifactId>
57-
<version>6.0</version>
57+
<version>6.0</version>
5858
</dependency>
5959
<dependency>
6060
<groupId>org.nhind</groupId>
61-
<artifactId>direct-common</artifactId>
62-
<version>6.0</version>
61+
<artifactId>direct-common</artifactId>
62+
<version>6.0</version>
6363
</dependency>
6464
<dependency>
6565
<groupId>org.nhind</groupId>
@@ -105,12 +105,12 @@
105105
<dependency>
106106
<groupId>org.bouncycastle</groupId>
107107
<artifactId>bcmail-jdk15on</artifactId>
108-
<version>1.60</version>
109-
</dependency>
108+
<version>1.60</version>
109+
</dependency>
110110
<dependency>
111111
<groupId>org.bouncycastle</groupId>
112112
<artifactId>bcpkix-jdk15on</artifactId>
113-
<version>1.60</version>
113+
<version>1.60</version>
114114
</dependency>
115115
<dependency>
116116
<groupId>dnsjava</groupId>
@@ -338,7 +338,7 @@
338338
<source>1.8</source>
339339
<show>public</show>
340340
<excludePackageNames>
341-
org.nhindirect.stagent.annotation:org.nhindirect.stagent.cert.impl:org.nhindirect.stagent.cert.impl.annotation:org.nhindirect.stagent.cert.impl.module:org.nhindirect.stagent.cert.impl.provider:org.nhindirect.stagent.cryptography.annotation:org.nhindirect.stagent.module:org.nhindirect.stagent.provider:org.nhindirect.stagent.trust.annotation:org.nhindirect.stagent.trust.provider:org.nhindirect.stagent.utils:org.nhindirect.stagent.policy.impl
341+
org.nhindirect.stagent.annotation:org.nhindirect.stagent.cert.impl:org.nhindirect.stagent.cert.impl.annotation:org.nhindirect.stagent.cert.impl.module:org.nhindirect.stagent.cert.impl.provider:org.nhindirect.stagent.cryptography.annotation:org.nhindirect.stagent.module:org.nhindirect.stagent.provider:org.nhindirect.stagent.trust.annotation:org.nhindirect.stagent.trust.provider:org.nhindirect.stagent.utils:org.nhindirect.stagent.policy.impl:org.nhindirect.stagent.cryptography.bc
342342
</excludePackageNames>
343343
</configuration>
344344
<executions>
@@ -389,7 +389,7 @@
389389
<source>1.8</source>
390390
<show>public</show>
391391
<excludePackageNames>
392-
org.nhindirect.stagent.annotation:org.nhindirect.stagent.cert.impl:org.nhindirect.stagent.cert.impl.annotation:org.nhindirect.stagent.cert.impl.module:org.nhindirect.stagent.cert.impl.provider:org.nhindirect.stagent.cryptography.annotation:org.nhindirect.stagent.module:org.nhindirect.stagent.provider:org.nhindirect.stagent.trust.annotation:org.nhindirect.stagent.trust.provider:org.nhindirect.stagent.utils:org.nhindirect.stagent.policy.impl
392+
org.nhindirect.stagent.annotation:org.nhindirect.stagent.cert.impl:org.nhindirect.stagent.cert.impl.annotation:org.nhindirect.stagent.cert.impl.module:org.nhindirect.stagent.cert.impl.provider:org.nhindirect.stagent.cryptography.annotation:org.nhindirect.stagent.module:org.nhindirect.stagent.provider:org.nhindirect.stagent.trust.annotation:org.nhindirect.stagent.trust.provider:org.nhindirect.stagent.utils:org.nhindirect.stagent.policy.impl:org.nhindirect.stagent.cryptography.bc
393393
</excludePackageNames>
394394
</configuration>
395395
</plugin>

src/main/java/org/nhindirect/stagent/cryptography/SMIMECryptographerImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
7878
import org.nhindirect.stagent.NHINDException;
7979
import org.nhindirect.stagent.SignatureValidationException;
8080
import org.nhindirect.stagent.cert.X509CertificateEx;
81+
import org.nhindirect.stagent.cryptography.bc.DirectJceKeyTransEnvelopedRecipient;
8182
import org.nhindirect.stagent.mail.Message;
8283
import org.nhindirect.stagent.mail.MimeEntity;
8384
import org.nhindirect.stagent.mail.MimeError;
@@ -497,7 +498,7 @@ public MimeEntity decrypt(MimeEntity encryptedEntity, Collection<X509Certificate
497498
if (recipient == null)
498499
continue;
499500

500-
final JceKeyTransEnvelopedRecipient recip = new JceKeyTransEnvelopedRecipient(decryptCert.getPrivateKey());
501+
final JceKeyTransEnvelopedRecipient recip = new DirectJceKeyTransEnvelopedRecipient(decryptCert.getPrivateKey());
501502
recip.setProvider(CryptoExtensions.getJCESensitiveProviderName());
502503
recip.setContentProvider(CryptoExtensions.getJCEProviderName());
503504

0 commit comments

Comments
 (0)