KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > osgi > framework > adaptor > core > SignedBundleSupport


1 /*******************************************************************************
2  * Copyright (c) 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.osgi.framework.adaptor.core;
12
13 /**
14  * Provides the implementation of signed bundle support for the framework adaptor.
15  * <p>
16  * Clients may implement this interface.
17  * </p>
18  * @since 3.1
19  */

20 public interface SignedBundleSupport {
21     /**
22      * Create a new SignedBundle object
23      * @return a new SignedBundle object
24      */

25     public SignedBundle createSignedBundle();
26
27     /**
28      * Matches the distinguished name chain against a pattern of a distinguished name chain.
29      *
30      * @param pattern the pattern of distinguished name (DN) chains to match
31      * against the dnChain.
32      * @see org.eclipse.osgi.framework.adaptor.FrameworkAdaptor#matchDNChain(String, String[])
33      * @return true if a dnChain matches the pattern. A value of false is returned
34      * if bundle signing is not supported.
35      * @throws IllegalArgumentException
36      */

37     public boolean matchDNChain(String JavaDoc pattern, String JavaDoc dnChain[]);
38 }
39
Popular Tags