Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2008-12-15 15:20:32 +0000
committerThomas Watson2008-12-15 15:20:32 +0000
commit7e2fa05c41b1f235eda6cb8728a48b6e7c8ab5aa (patch)
treea5d06d87648d4b5cc3bb9798d75341eb280b0cfc /bundles/org.eclipse.osgi/security/src/org
parent77be6fb9b97a784c03698f7fa5f4d4fcbd9e7d0c (diff)
downloadrt.equinox.framework-7e2fa05c41b1f235eda6cb8728a48b6e7c8ab5aa.tar.gz
rt.equinox.framework-7e2fa05c41b1f235eda6cb8728a48b6e7c8ab5aa.tar.xz
rt.equinox.framework-7e2fa05c41b1f235eda6cb8728a48b6e7c8ab5aa.zip
Bug 258802 Invalid implementation of getSigner method in LegacyVerifierFactory.LegacyChain class
Diffstat (limited to 'bundles/org.eclipse.osgi/security/src/org')
-rw-r--r--bundles/org.eclipse.osgi/security/src/org/eclipse/osgi/internal/signedcontent/LegacyVerifierFactory.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.osgi/security/src/org/eclipse/osgi/internal/signedcontent/LegacyVerifierFactory.java b/bundles/org.eclipse.osgi/security/src/org/eclipse/osgi/internal/signedcontent/LegacyVerifierFactory.java
index be9106879..717455895 100644
--- a/bundles/org.eclipse.osgi/security/src/org/eclipse/osgi/internal/signedcontent/LegacyVerifierFactory.java
+++ b/bundles/org.eclipse.osgi/security/src/org/eclipse/osgi/internal/signedcontent/LegacyVerifierFactory.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007 IBM Corporation and others. All rights reserved.
+ * Copyright (c) 2007, 2008 IBM Corporation and others. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
@@ -123,7 +123,7 @@ public class LegacyVerifierFactory implements CertificateVerifierFactory {
public Certificate getSigner() {
Certificate[] certs = getCertificates();
- return certs.length > 0 ? certs[1] : null;
+ return certs.length > 0 ? certs[0] : null;
}
public Date getSigningTime() {

Back to the top