Package org.eclipse.equinox.p2.core
Class UIServices.TrustInfo
- java.lang.Object
-
- org.eclipse.equinox.p2.core.UIServices.TrustInfo
-
- Enclosing class:
- UIServices
public static class UIServices.TrustInfo extends Object
Trust information returned from a trust request. *
-
-
Constructor Summary
Constructors Constructor Description TrustInfo(Certificate[] trusted, boolean save, boolean trustUnsigned)Deprecated.use other constructorTrustInfo(Collection<Certificate> trustedCertificates, Collection<org.bouncycastle.openpgp.PGPPublicKey> trustedPGPKeys, boolean save, boolean trustUnsigned)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Certificate[]getTrustedCertificates()Return an array of the certificates that should be trusted for the requested operation.Collection<org.bouncycastle.openpgp.PGPPublicKey>getTrustedPGPKeys()booleanpersistTrust()Return a boolean indicating whether the trusted certificates should be persisted for future operations.booleantrustUnsignedContent()Return a boolean indicating whether the unsigned content should be trusted during this operation.
-
-
-
Constructor Detail
-
TrustInfo
@Deprecated public TrustInfo(Certificate[] trusted, boolean save, boolean trustUnsigned)
Deprecated.use other constructor- Parameters:
trusted- Trusted certificatessave- Whether to store trusted certificates or nottrustUnsigned- Whether to trust unsigned.trueif installation should continue despite unsigned content;falseotherwise.
-
TrustInfo
public TrustInfo(Collection<Certificate> trustedCertificates, Collection<org.bouncycastle.openpgp.PGPPublicKey> trustedPGPKeys, boolean save, boolean trustUnsigned)
- Parameters:
trustedCertificates- Trusted certificatestrustedPGPKeys- Trusted PGP public keyssave- Whether to store trusted certificates and keys or not.trustUnsigned- Whether to trust unsigned.trueif installation should continue despite unsigned content;falseotherwise.- Since:
- 2.8
-
-
Method Detail
-
getTrustedCertificates
public Certificate[] getTrustedCertificates()
Return an array of the certificates that should be trusted for the requested operation.- Returns:
- the trusted certificates, or
nullif there are no certificates that were verified as trusted.
-
getTrustedPGPKeys
public Collection<org.bouncycastle.openpgp.PGPPublicKey> getTrustedPGPKeys()
- Returns:
- the trusted PGP keys
- Since:
- 2.8
-
persistTrust
public boolean persistTrust()
Return a boolean indicating whether the trusted certificates should be persisted for future operations.- Returns:
trueif the trusted certificates should be persisted,falseif the trust only applies for this request.
-
trustUnsignedContent
public boolean trustUnsignedContent()
Return a boolean indicating whether the unsigned content should be trusted during this operation.- Returns:
trueif the unsigned content should be trusted, or if there was no unsigned content, andfalseif there was unsigned content and should not be trusted.
-
-