Examples of TrustEngineListener


Examples of org.eclipse.osgi.internal.signedcontent.TrustEngineListener

   * @throws GeneralSecurityException if there is a certificate problem
   * @throws IllegalArgumentException if the alias or anchor already exist in this trust engine
   */
  public String addTrustAnchor(Certificate anchor, String alias) throws IOException, GeneralSecurityException {
    String storedAlias = doAddTrustAnchor(anchor, alias);
    TrustEngineListener listener = TrustEngineListener.getInstance();
    if (listener != null)
      listener.addedTrustAnchor(anchor);
    return storedAlias;
  }
View Full Code Here

Examples of org.eclipse.osgi.internal.signedcontent.TrustEngineListener

   * @throws IOException if there is a problem connecting to the backing store
   * @throws GeneralSecurityException if there is a certificate problem
   */
  public final void removeTrustAnchor(Certificate anchor) throws IOException, GeneralSecurityException {
    doRemoveTrustAnchor(anchor);
    TrustEngineListener listener = TrustEngineListener.getInstance();
    if (listener != null)
      listener.removedTrustAnchor(anchor);
  }
View Full Code Here

Examples of org.eclipse.osgi.internal.signedcontent.TrustEngineListener

   */
  public void removeTrustAnchor(String alias) throws IOException, GeneralSecurityException {
    Certificate existing = getTrustAnchor(alias);
    doRemoveTrustAnchor(alias);
    if (existing != null) {
      TrustEngineListener listener = TrustEngineListener.getInstance();
      if (listener != null)
        listener.removedTrustAnchor(existing);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.