亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? engine.java

?? linux下建立JAVA虛擬機的源碼KAFFE
?? JAVA
字號:
/* Engine -- generic getInstance method.   Copyright (C) 2003, 2006  Free Software Foundation, Inc.This file is part of GNU Classpath.GNU Classpath is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version.GNU Classpath is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU Classpath; see the file COPYING.  If not, write to theFree Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA02110-1301 USA.Linking this library statically or dynamically with other modules ismaking a combined work based on this library.  Thus, the terms andconditions of the GNU General Public License cover the wholecombination.As a special exception, the copyright holders of this library give youpermission to link this library with independent modules to produce anexecutable, regardless of the license terms of these independentmodules, and to copy and distribute the resulting executable underterms of your choice, provided that you also meet, for each linkedindependent module, the terms and conditions of the license of thatmodule.  An independent module is a module which is not derived fromor based on this library.  If you modify this library, you may extendthis exception to your version of the library, but you are notobligated to do so.  If you do not wish to do so, delete thisexception statement from your version. */package gnu.java.security;import java.lang.reflect.Constructor;import java.lang.reflect.InvocationTargetException;import java.security.NoSuchAlgorithmException;import java.security.Provider;/** * Generic implementation of the getInstance methods in the various * engine classes in java.security. * <p> * These classes ({@link java.security.Signature} for example) can be * thought of as the "chrome, upholstery, and steering wheel", and the SPI * (service provider interface, e.g. {@link java.security.SignatureSpi}) * classes can be thought of as the "engine" -- providing the actual * functionality of whatever cryptographic algorithm the instance * represents. * * @see Provider * @author Casey Marshall  */public final class Engine{  // Constants.  // ------------------------------------------------------------------------  /** Prefix for aliases. */  private static final String ALG_ALIAS = "Alg.Alias.";  /** Maximum number of aliases to try. */  private static final int MAX_ALIASES = 5;  /** Argument list for no-argument constructors. */  private static final Object[] NO_ARGS = new Object[0];  // Constructor.  // ------------------------------------------------------------------------  /** This class cannot be instantiated. */  private Engine() { }  // Class method.  // ------------------------------------------------------------------------  /**   * Get the implementation for <i>algorithm</i> for service   * <i>service</i> from <i>provider</i>. The service is e.g.   * "Signature", and the algorithm "DSA".   *   * @param service   The service name.   * @param algorithm The name of the algorithm to get.   * @param provider  The provider to get the implementation from.   * @return The engine class for the specified algorithm; the object   *         returned is typically a subclass of the SPI class for that   *         service, but callers should check that this is so.   * @throws NoSuchAlgorithmException If the implementation cannot be   *         found or cannot be instantiated.   * @throws InvocationTargetException If the SPI class's constructor   *         throws an exception.   * @throws IllegalArgumentException If any of the three arguments are null.   */  public static Object getInstance(String service, String algorithm,                                   Provider provider)    throws InvocationTargetException, NoSuchAlgorithmException  {    return getInstance(service, algorithm, provider, NO_ARGS);  }  /**   * Get the implementation for <i>algorithm</i> for service   * <i>service</i> from <i>provider</i>, passing <i>initArgs</i> to the   * SPI class's constructor (which cannot be null; pass a zero-length   * array if the SPI takes no arguments). The service is e.g.   * "Signature", and the algorithm "DSA".   *   * @param service   The service name.   * @param algorithm The name of the algorithm to get.   * @param provider  The provider to get the implementation from.   * @param initArgs  The arguments to pass to the SPI class's   *        constructor (cannot be null).   * @return The engine class for the specified algorithm; the object   *         returned is typically a subclass of the SPI class for that   *         service, but callers should check that this is so.   * @throws NoSuchAlgorithmException If the implementation cannot be   *         found or cannot be instantiated.   * @throws InvocationTargetException If the SPI class's constructor   *         throws an exception.   * @throws IllegalArgumentException If any of the four arguments are null.   */  public static Object getInstance(String service, String algorithm,                                   Provider provider, Object[] initArgs)    throws InvocationTargetException, NoSuchAlgorithmException  {    if (service != null)      service = service.trim();    if (algorithm != null)      algorithm = algorithm.trim();    if (service == null || service.length() == 0        || algorithm == null || algorithm.length() == 0        || provider == null || initArgs == null)      throw new IllegalArgumentException();    // If there is no property "service.algorithm"    if (provider.getProperty(service + "." + algorithm) == null)      {        // Iterate through aliases, until we find the class name or resolve        // too many aliases.        String alias = null;        int count = 0;        while ((alias = provider.getProperty(                ALG_ALIAS + service + "." + algorithm)) != null)          {            if (algorithm.equals(alias))  // Refers to itself!              break;            algorithm = alias;            if (count++ > MAX_ALIASES)              throw new NoSuchAlgorithmException("too many aliases");          }        if (provider.getProperty(service + "." + algorithm) == null)          throw new NoSuchAlgorithmException(algorithm);      }    // Find and instantiate the implementation.    Class clazz = null;    ClassLoader loader = provider.getClass().getClassLoader();    Constructor constructor = null;    String error = algorithm;    try      {        if (loader != null)          clazz = loader.loadClass(provider.getProperty(service+"."+algorithm));        else          clazz = Class.forName(provider.getProperty(service+"."+algorithm));        constructor = getCompatibleConstructor(clazz, initArgs);        return constructor.newInstance(initArgs);      }    catch (ClassNotFoundException cnfe)      {        error = "class not found: " + algorithm;      }    catch (IllegalAccessException iae)      {        error = "illegal access: " + iae.getMessage();      }    catch (InstantiationException ie)      {        error = "instantiation exception: " + ie.getMessage();      }    catch (ExceptionInInitializerError eiie)      {        error = "exception in initializer: " + eiie.getMessage();      }    catch (SecurityException se)      {        error = "security exception: " + se.getMessage();      }    catch (NoSuchMethodException nsme)      {        error = "no appropriate constructor found";      }    throw new NoSuchAlgorithmException(error);  }  // Own methods.  // ------------------------------------------------------------------------  /**   * Find a constructor in the given class that can take the specified   * argument list, allowing any of which to be null.   *   * @param clazz    The class from which to get the constructor.   * @param initArgs The argument list to be passed to the constructor.   * @return The constructor.   * @throws NoSuchMethodException If no constructor of the given class   *         can take the specified argument array.   */  private static Constructor getCompatibleConstructor(Class clazz,                                                      Object[] initArgs)    throws NoSuchMethodException  {    Constructor[] c = clazz.getConstructors();    outer:for (int i = 0; i < c.length; i++)      {        Class[] argTypes = c[i].getParameterTypes();        if (argTypes.length != initArgs.length)          continue;        for (int j = 0; j < argTypes.length; j++)          {            if (initArgs[j] != null &&                !argTypes[j].isAssignableFrom(initArgs[j].getClass()))              continue outer;          }        // If we reach this point, we know this constructor (c[i]) has        // the same number of parameters as the target parameter list,        // and all our parameters are either (1) null, or (2) assignable        // to the target parameter type.        return c[i];      }    throw new NoSuchMethodException();  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
天天综合日日夜夜精品| 五月天久久比比资源色| 麻豆91精品91久久久的内涵| 99麻豆久久久国产精品免费| 日韩精品一区二区三区中文不卡| 亚洲人成伊人成综合网小说| 国内成人精品2018免费看| 欧美视频中文字幕| 亚洲欧洲精品一区二区三区| 国产一区二区成人久久免费影院| 欧美乱熟臀69xxxxxx| 亚洲视频一区二区在线观看| 国产一区视频网站| 日韩限制级电影在线观看| 亚洲自拍偷拍麻豆| 99久久精品免费| 久久精品人人做人人综合| 蜜臀av性久久久久蜜臀av麻豆| 色噜噜久久综合| 中文欧美字幕免费| 国产一区二区不卡老阿姨| 日韩三级高清在线| 手机精品视频在线观看| 欧美三级韩国三级日本三斤| 亚洲精品免费在线观看| 成人动漫在线一区| 国产日韩在线不卡| 精一区二区三区| 日韩三级在线免费观看| 日韩成人免费电影| 欧美性猛交xxxx乱大交退制版 | 成人在线视频一区二区| 欧美电影免费观看高清完整版| 午夜视频在线观看一区二区 | 国产一区二区精品久久| 日韩欧美国产一二三区| 日本在线不卡视频一二三区| 欧美日韩色一区| 亚洲福利视频导航| 欧美性生活大片视频| 亚洲成人一二三| 欧美日本一区二区三区四区| 亚洲大片精品永久免费| 欧美久久一区二区| 日日骚欧美日韩| 欧美一区二区三区在| 强制捆绑调教一区二区| 日韩精品一区二区三区视频在线观看 | 一本色道亚洲精品aⅴ| 亚洲色图制服丝袜| 一本久道久久综合中文字幕 | 精品国产3级a| 国产制服丝袜一区| 久久综合色8888| 国产精品系列在线播放| 国产精品午夜在线| 91啪亚洲精品| 亚洲国产精品久久久久秋霞影院 | 成人美女视频在线观看18| 国产精品你懂的| 色综合激情久久| 亚洲地区一二三色| 日韩写真欧美这视频| 国产精品一二三区在线| 亚洲欧美自拍偷拍色图| 欧日韩精品视频| 男女激情视频一区| 久久综合资源网| 成人在线一区二区三区| 亚洲免费观看在线视频| 欧美网站一区二区| 久久99深爱久久99精品| 亚洲国产高清在线观看视频| 色哟哟亚洲精品| 日本成人在线电影网| 久久综合九色欧美综合狠狠| 成人高清av在线| 亚洲丰满少妇videoshd| 日韩欧美国产三级电影视频| 国产99久久久精品| 亚洲最新在线观看| 日韩精品一区二区三区视频| 成人午夜免费视频| 性做久久久久久| 久久久久久久久久久黄色| 色综合夜色一区| 欧美aⅴ一区二区三区视频| 国产亚洲一区二区三区四区| 91在线视频官网| 天堂在线一区二区| 久久九九影视网| 欧美性淫爽ww久久久久无| 蜜臀久久久99精品久久久久久| 中文字幕不卡在线观看| 欧美天堂一区二区三区| 韩国在线一区二区| 一二三四社区欧美黄| 精品国产百合女同互慰| 91福利在线播放| 国产美女视频91| 亚洲最快最全在线视频| www国产成人| 在线视频国内自拍亚洲视频| 精品一区二区三区不卡 | 欧美大片顶级少妇| 99久久国产综合色|国产精品| 日韩av中文字幕一区二区| 中文字幕电影一区| 91精品国产色综合久久| 成人av小说网| 蜜臀av性久久久久蜜臀aⅴ四虎| 综合分类小说区另类春色亚洲小说欧美 | 日本亚洲电影天堂| 国产精品久久久久影院| 日韩一区二区在线播放| 91女神在线视频| 国产一区二区在线观看视频| 亚洲无线码一区二区三区| 国产精品私人影院| 欧美一级理论片| 欧美专区日韩专区| 成人午夜大片免费观看| 久久精品国产久精国产| 亚洲不卡一区二区三区| 亚洲欧洲一区二区在线播放| 精品日本一线二线三线不卡| 欧美视频精品在线| 99久久国产免费看| 国产一区二区三区视频在线播放| 午夜私人影院久久久久| 亚洲精品日日夜夜| 国产精品你懂的在线| 欧美精品一区二区三区在线 | 99久久久久免费精品国产| 国产在线观看免费一区| 男女男精品网站| 午夜电影网一区| 亚洲精品视频免费观看| 中文字幕一区av| 国产精品视频一区二区三区不卡| 欧美成人性战久久| 欧美久久一区二区| 精品视频一区 二区 三区| 色综合久久六月婷婷中文字幕| 成人一区二区三区中文字幕| 极品美女销魂一区二区三区 | 国产精品第一页第二页第三页| 久久久精品日韩欧美| 欧美成人r级一区二区三区| 欧美精品视频www在线观看| 91蜜桃婷婷狠狠久久综合9色| 成人少妇影院yyyy| 国产激情一区二区三区四区| 国产做a爰片久久毛片| 蜜臀av一区二区三区| 日韩二区在线观看| 五月激情丁香一区二区三区| 亚洲五码中文字幕| 亚洲第一福利视频在线| 亚洲国产日产av| 亚洲大尺度视频在线观看| 午夜天堂影视香蕉久久| 亚洲va在线va天堂| 首页国产欧美久久| 日韩精品亚洲专区| 日韩av在线发布| 久久精品国产99国产| 久久成人免费网站| 精品一区二区三区香蕉蜜桃 | 免费成人在线影院| 久久超碰97人人做人人爱| 免费成人小视频| 韩日av一区二区| 丁香婷婷综合激情五月色| 成人理论电影网| 色乱码一区二区三区88| 欧美亚洲丝袜传媒另类| 91精选在线观看| 日韩欧美一区在线观看| 久久久精品国产免大香伊| 国产欧美久久久精品影院| 国产精品护士白丝一区av| 亚洲免费观看在线视频| 五月激情六月综合| 久久99精品视频| 粉嫩久久99精品久久久久久夜| eeuss国产一区二区三区| 色婷婷久久99综合精品jk白丝 | 成人在线综合网| www.欧美日韩| 在线免费亚洲电影| 日韩一区二区在线看| 国产日产欧美一区二区视频| 亚洲女同女同女同女同女同69| 亚洲一区二区影院| 美女一区二区三区| 成人h动漫精品一区二区| 在线观看日韩国产| 日韩久久久久久| 综合欧美亚洲日本|