diff options
author | Mickael Istria | 2021-06-15 14:01:53 +0000 |
---|---|---|
committer | Mickael Istria | 2021-06-15 14:02:29 +0000 |
commit | a5f93932388fccec6b4f1dd1f48ab0ec44f5d6ac (patch) | |
tree | b7629e4af422744482f6d586a5635d0ce565763a | |
parent | 45af7098437c45a46e7637d9aeb0177ca998e209 (diff) | |
download | rt.equinox.p2-a5f93932388fccec6b4f1dd1f48ab0ec44f5d6ac.tar.gz rt.equinox.p2-a5f93932388fccec6b4f1dd1f48ab0ec44f5d6ac.tar.xz rt.equinox.p2-a5f93932388fccec6b4f1dd1f48ab0ec44f5d6ac.zip |
Bug 572816 - Add Javadoc to UIServices & TrustInfo about new methods
-rw-r--r-- | bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/p2/core/UIServices.java | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/p2/core/UIServices.java b/bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/p2/core/UIServices.java index f2e27a243..b260e7654 100644 --- a/bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/p2/core/UIServices.java +++ b/bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/p2/core/UIServices.java @@ -81,6 +81,14 @@ public abstract class UIServices { private final boolean saveTrustedCertificates; private final boolean trustUnsigned; + /** + * + * @param trusted + * @param save + * @param trustUnsigned + * @deprecated use other constructor + */ + @Deprecated public TrustInfo(Certificate[] trusted, boolean save, boolean trustUnsigned) { this.trustedCertificates = trusted; this.trustedPGPKeys = Collections.emptyList(); @@ -90,7 +98,7 @@ public abstract class UIServices { /** * - * @param trusted + * @param trustedCertificates * @param trustedPGPKeys * @param save * @param trustUnsigned @@ -169,12 +177,16 @@ public abstract class UIServices { /** * Opens a UI prompt to capture information about trusted content. * - * @param untrustedChain - an array of certificate chains for which there is no current trust anchor. May be - * <code>null</code>, which means there are no untrusted certificate chains. - * @param unsignedDetail - an array of strings, where each String describes content that is not signed. - * May be <code>null</code>, which means there is no unsigned content - * @return the TrustInfo that describes the user's choices for trusting certificates and - * unsigned content. + * @param untrustedChain - an array of certificate chains for which there is no + * current trust anchor. May be <code>null</code>, which + * means there are no untrusted certificate chains. + * @param unsignedDetail - an array of strings, where each String describes + * content that is not signed. May be <code>null</code>, + * which means there is no unsigned content + * @return the TrustInfo that describes the user's choices for trusting + * certificates and unsigned content. + * @implSpec Implementors should also override + * {@link #getTrustInfo(Certificate[][], Collection, String[])}. */ public abstract TrustInfo getTrustInfo(Certificate[][] untrustedChain, String[] unsignedDetail); |