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

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

?? keystore.java

?? gcc-you can use this code to learn something about gcc, and inquire further into linux,
?? JAVA
字號:
/* KeyStore.java --- Key Store Class   Copyright (C) 1999, 2002 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., 59 Temple Place, Suite 330, Boston, MA02111-1307 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 java.security;import java.io.InputStream;import java.io.IOException;import java.io.OutputStream;import java.security.cert.CertificateException;import java.util.Date;import java.util.Enumeration;/**   Keystore represents an in-memory collection of keys and    certificates. There are two types of entries:   * Key Entry   This type of keystore entry store sensitive crytographic key   information in a protected format.Typically this is a secret    key or a private key with a certificate chain.   * Trusted Ceritificate Entry   This type of keystore entry contains a single public key    certificate belonging to annother entity. It is called trusted   because the keystore owner trusts that the certificates   belongs to the subject (owner) of the certificate.   The keystore contains an "alias" string for each entry.    The structure and persistentence of the key store is not    specified. Any method could be used to protect sensitive    (private or secret) keys. Smart cards or integrated    cryptographic engines could be used or the keystore could    be simply stored in a file.  */public class KeyStore{  private KeyStoreSpi keyStoreSpi;  private Provider provider;  private String type;  /**     Creates an instance of KeyStore     @param keyStoreSpi A KeyStore engine to use     @param provider A provider to use     @param type The type of KeyStore   */  protected KeyStore(KeyStoreSpi keyStoreSpi, Provider provider, String type)  {    this.keyStoreSpi = keyStoreSpi;    this.provider = provider;    this.type = type;  }  /**      Gets an instance of the KeyStore class representing     the specified keystore. If the type is not      found then, it throws KeyStoreException.     @param type the type of keystore to choose     @return a KeyStore repesenting the desired type     @throws KeyStoreException if the type of keystore is not implemented by providers   */  public static KeyStore getInstance(String type) throws KeyStoreException  {    Provider[] p = Security.getProviders();    for (int i = 0; i < p.length; i++)      {	String classname = p[i].getProperty("KeyStore." + type);	if (classname != null)	  return getInstance(classname, type, p[i]);      }    throw new KeyStoreException(type);  }  /**      Gets an instance of the KeyStore class representing     the specified key store from the specified provider.      If the type is not found then, it throws KeyStoreException.      If the provider is not found, then it throws      NoSuchProviderException.     @param type the type of keystore to choose     @param provider the provider name     @return a KeyStore repesenting the desired type     @throws KeyStoreException if the type of keystore is not               implemented by the given provider     @throws NoSuchProviderException if the provider is not found     @throws IllegalArgumentException if the provider string is                null or empty   */  public static KeyStore getInstance(String type, String provider)    throws KeyStoreException, NoSuchProviderException  {    if (provider == null || provider.length() == 0)      throw new IllegalArgumentException("Illegal provider");    Provider p = Security.getProvider(provider);    if (p == null)      throw new NoSuchProviderException();    return getInstance(p.getProperty("KeyStore." + type), type, p);  }  /**      Gets an instance of the KeyStore class representing     the specified key store from the specified provider.      If the type is not found then, it throws KeyStoreException.      If the provider is not found, then it throws      NoSuchProviderException.     @param type the type of keystore to choose     @param provider the keystore provider     @return a KeyStore repesenting the desired type     @throws KeyStoreException if the type of keystore is not               implemented by the given provider     @throws IllegalArgumentException if the provider object is null     @since 1.4   */  public static KeyStore getInstance(String type, Provider provider)    throws KeyStoreException   {    if (provider == null)      throw new IllegalArgumentException("Illegal provider");    return getInstance(provider.getProperty("KeyStore." + type),		       type, provider);  }  private static KeyStore getInstance(String classname,				      String type,				      Provider provider)    throws KeyStoreException  {    try      {	return new KeyStore((KeyStoreSpi) Class.forName(classname).			    newInstance(), provider, type);      }    catch (ClassNotFoundException cnfe)      {	throw new KeyStoreException("Class not found");      }    catch (InstantiationException ie)      {	throw new KeyStoreException("Class instantiation failed");      }    catch (IllegalAccessException iae)      {	throw new KeyStoreException("Illegal Access");      }  }  /**     Gets the provider that the class is from.     @return the provider of this class   */  public final Provider getProvider()  {    return provider;  }  /**     Returns the type of the KeyStore supported     @return A string with the type of KeyStore   */  public final String getType()  {    return type;  }  /**     Returns the key associated with given alias using the      supplied password.     @param alias an alias for the key to get     @param password password to access key with     @return the requested key, or null otherwise     @throws NoSuchAlgorithmException if there is no algorithm     for recovering the key     @throws UnrecoverableKeyException key cannot be reocovered     (wrong password).   */  public final Key getKey(String alias, char[]password)    throws KeyStoreException, NoSuchAlgorithmException,    UnrecoverableKeyException  {    return keyStoreSpi.engineGetKey(alias, password);  }  /**     Gets a Certificate chain for the specified alias.     @param alias the alias name     @return a chain of Certificates ( ordered from the user's      certificate to the Certificate Authority's ) or      null if the alias does not exist or there is no     certificate chain for the alias ( the alias refers     to a trusted certificate entry or there is no entry).   */  public final java.security.cert.    Certificate[] getCertificateChain(String alias) throws KeyStoreException  {    return keyStoreSpi.engineGetCertificateChain(alias);  }  /**     Gets a Certificate for the specified alias.     If there is a trusted certificate entry then that is returned.     it there is a key entry with a certificate chain then the     first certificate is return or else null.     @param alias the alias name     @return a Certificate or null if the alias does not exist      or there is no certificate for the alias   */  public final java.security.cert.Certificate getCertificate(String alias)    throws KeyStoreException  {    return keyStoreSpi.engineGetCertificate(alias);  }  /**     Gets entry creation date for the specified alias.     @param alias the alias name     @returns the entry creation date or null   */  public final Date getCreationDate(String alias) throws KeyStoreException  {    return keyStoreSpi.engineGetCreationDate(alias);  }  /**     Assign the key to the alias in the keystore, protecting it     with the given password. It will overwrite an existing      entry and if the key is a PrivateKey, also add the      certificate chain representing the corresponding public key.     @param alias the alias name     @param key the key to add     @password the password to protect with     @param chain the certificate chain for the corresponding     public key     @throws KeyStoreException if it fails   */  public final void setKeyEntry(String alias, Key key, char[]password,				java.security.cert.				Certificate[]chain) throws KeyStoreException  {    keyStoreSpi.engineSetKeyEntry(alias, key, password, chain);  }  /**     Assign the key to the alias in the keystore. It will overwrite     an existing entry and if the key is a PrivateKey, also      add the certificate chain representing the corresponding      public key.     @param alias the alias name     @param key the key to add     @param chain the certificate chain for the corresponding     public key     @throws KeyStoreException if it fails   */  public final void setKeyEntry(String alias, byte[]key,				java.security.cert.				Certificate[]chain) throws KeyStoreException  {    keyStoreSpi.engineSetKeyEntry(alias, key, chain);  }  /**     Assign the certificate to the alias in the keystore. It      will overwrite an existing entry.     @param alias the alias name     @param cert the certificate to add     @throws KeyStoreException if it fails   */  public final void setCertificateEntry(String alias,					java.security.cert.					Certificate cert) throws    KeyStoreException  {    keyStoreSpi.engineSetCertificateEntry(alias, cert);  }  /**     Deletes the entry for the specified entry.     @param alias the alias name     @throws KeyStoreException if it fails   */  public final void deleteEntry(String alias) throws KeyStoreException  {    keyStoreSpi.engineDeleteEntry(alias);  }  /**     Generates a list of all the aliases in the keystore.     @return an Enumeration of the aliases   */  public final Enumeration aliases() throws KeyStoreException  {    return keyStoreSpi.engineAliases();  }  /**     Determines if the keystore contains the specified alias.     @param alias the alias name     @return true if it contains the alias, false otherwise   */  public final boolean containsAlias(String alias) throws KeyStoreException  {    return keyStoreSpi.engineContainsAlias(alias);  }  /**     Returns the number of entries in the keystore.     @returns the number of keystore entries.   */  public final int size() throws KeyStoreException  {    return keyStoreSpi.engineSize();  }  /**     Determines if the keystore contains a key entry for      the specified alias.     @param alias the alias name     @return true if it is a key entry, false otherwise   */  public final boolean isKeyEntry(String alias) throws KeyStoreException  {    return keyStoreSpi.engineIsKeyEntry(alias);  }  /**     Determines if the keystore contains a certificate entry for      the specified alias.     @param alias the alias name     @return true if it is a certificate entry, false otherwise   */  public final boolean isCertificateEntry(String alias)    throws KeyStoreException  {    return keyStoreSpi.engineIsCertificateEntry(alias);  }  /**     Determines if the keystore contains the specified certificate      entry and returns the alias.     It checks every entry and for a key entry checks only the     first certificate in the chain.     @param cert Certificate to look for     @return alias of first matching certificate, null if it      does not exist.   */  public final String getCertificateAlias(java.security.cert.Certificate cert)    throws KeyStoreException  {    return keyStoreSpi.engineGetCertificateAlias(cert);  }  /**     Stores the keystore in the specified output stream and it     uses the specified key it keep it secure.     @param stream the output stream to save the keystore to     @param password the password to protect the keystore integrity with     @throws IOException if an I/O error occurs.     @throws NoSuchAlgorithmException the data integrity algorithm      used cannot be found.     @throws CertificateException if any certificates could not be     stored in the output stream.   */  public final void store(OutputStream stream, char[]password)    throws KeyStoreException, IOException, NoSuchAlgorithmException,    CertificateException  {    keyStoreSpi.engineStore(stream, password);  }  /**     Loads the keystore from the specified input stream and it     uses the specified password to check for integrity if supplied.     @param stream the input stream to load the keystore from     @param password the password to check the keystore integrity with     @throws IOException if an I/O error occurs.     @throws NoSuchAlgorithmException the data integrity algorithm      used cannot be found.     @throws CertificateException if any certificates could not be     stored in the output stream.   */  public final void load(InputStream stream, char[]password)    throws IOException, NoSuchAlgorithmException, CertificateException  {    keyStoreSpi.engineLoad(stream, password);  }  /**     Returns the default KeyStore type. This method looks up the     type in <JAVA_HOME>/lib/security/java.security with the      property "keystore.type" or if that fails then "jks" .   */  public static final String getDefaultType()  {    String tmp;    //Security reads every property in java.security so it     //will return this property if it exists.     tmp = Security.getProperty("keystore.type");    if (tmp == null)      tmp = "jks";    return tmp;  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
奇米色一区二区| 国产亚洲va综合人人澡精品| 亚洲成人先锋电影| 久久九九久久九九| 欧美高清视频在线高清观看mv色露露十八 | 欧美日韩在线三级| 国产又黄又大久久| 国产亚洲污的网站| 日韩一区二区在线播放| 91免费国产在线| 亚洲一区精品在线| 国产精品丝袜91| 亚洲精品一线二线三线| 欧美老肥妇做.爰bbww| 99久久精品国产观看| 国产成人免费在线观看不卡| 水野朝阳av一区二区三区| 亚洲人成在线播放网站岛国| 久久精品欧美一区二区三区不卡| 国产宾馆实践打屁股91| 欧美a级理论片| 亚洲一级不卡视频| 亚洲人成网站影音先锋播放| 欧美日韩免费电影| 91在线观看污| 成人免费视频视频| 午夜久久久久久久久久一区二区| 日韩一级视频免费观看在线| 欧美又粗又大又爽| 91免费精品国自产拍在线不卡| 亚洲成人av资源| 亚洲一级电影视频| 亚洲国产va精品久久久不卡综合| 欧美成人激情免费网| 丁香六月综合激情| 欧美精品日韩一本| 91黄视频在线观看| 色噜噜狠狠色综合欧洲selulu| 日韩和的一区二区| 偷拍日韩校园综合在线| 国产午夜精品一区二区三区视频| 成人网男人的天堂| 97久久精品人人做人人爽50路| 日韩av在线发布| 蜜臀99久久精品久久久久久软件 | 亚洲三级电影全部在线观看高清| 欧美日韩一区二区三区四区 | 日本特黄久久久高潮| 亚洲成a人片在线不卡一二三区 | 欧美电视剧免费全集观看| 91精品国产91综合久久蜜臀| 91精品国产综合久久久蜜臀图片| 成人av在线看| 日本道精品一区二区三区| 色欲综合视频天天天| 在线观看免费视频综合| 国产91丝袜在线18| 成人综合在线视频| 91亚洲国产成人精品一区二三| 另类欧美日韩国产在线| 国产综合色精品一区二区三区| 亚洲自拍偷拍麻豆| 免费观看一级特黄欧美大片| 精品一区精品二区高清| 午夜精品久久久久久久| 麻豆成人久久精品二区三区小说| 国产精品不卡在线观看| 一区二区三区国产精华| 日本在线播放一区二区三区| 国产一区二区成人久久免费影院| 五月激情综合色| 韩国精品在线观看| 91丨国产丨九色丨pron| 在线播放一区二区三区| 久久久久久久久岛国免费| 欧美顶级少妇做爰| 欧美日韩极品在线观看一区| 色哟哟日韩精品| 日韩三级在线观看| 国产精品卡一卡二卡三| 午夜在线成人av| 成人一级视频在线观看| 欧美三区在线观看| 欧美色图激情小说| 国产色一区二区| 一本色道a无线码一区v| 国产不卡在线视频| 91在线观看美女| 日韩亚洲欧美成人一区| 综合亚洲深深色噜噜狠狠网站| 91免费观看视频在线| 色诱亚洲精品久久久久久| 国产一区二区毛片| 麻豆极品一区二区三区| 国产精品亚洲第一区在线暖暖韩国| 欧美三级欧美一级| 一本色道久久综合亚洲精品按摩| 成人免费毛片片v| 精品视频全国免费看| 国产欧美综合色| 日本成人在线一区| 欧美性大战久久久久久久| 久久精品亚洲一区二区三区浴池| 久久久精品国产免大香伊| 午夜成人免费电影| 99视频国产精品| 久久这里只精品最新地址| 亚洲成人资源网| 色偷偷久久人人79超碰人人澡| 欧美在线观看视频在线| 91精品国产色综合久久| 亚洲欧美一区二区三区极速播放| 亚洲精品福利视频网站| 亚欧色一区w666天堂| 蜜臀av在线播放一区二区三区| 精品在线播放午夜| 欧美一区二区三区白人| 久久香蕉国产线看观看99| 日韩综合一区二区| 欧美午夜影院一区| 亚洲视频一二区| yourporn久久国产精品| 久久久99精品免费观看| 一个色在线综合| 91免费在线视频观看| 欧美成人r级一区二区三区| 亚洲线精品一区二区三区八戒| 石原莉奈一区二区三区在线观看| 韩国精品一区二区| 精品国精品自拍自在线| 中文字幕亚洲一区二区av在线| 亚洲mv大片欧洲mv大片精品| 色婷婷狠狠综合| 悠悠色在线精品| 日本高清不卡一区| 亚洲综合在线第一页| 日本韩国欧美在线| 一区二区三区四区视频精品免费| 美女视频一区在线观看| 在线91免费看| 国产精品麻豆99久久久久久| 国产精品99久久久久久久女警 | 久久精品无码一区二区三区| 久久成人麻豆午夜电影| 日韩精品一区在线| 激情欧美一区二区| 久久先锋影音av鲁色资源 | 亚洲人妖av一区二区| a级高清视频欧美日韩| 亚洲欧洲日韩一区二区三区| 成人精品一区二区三区中文字幕 | 欧美日韩国产在线观看| 日韩国产在线观看一区| 日韩欧美中文一区| 久久疯狂做爰流白浆xx| 精品少妇一区二区三区日产乱码| 国产亚洲一本大道中文在线| 一二三区精品视频| caoporn国产精品| 精品久久人人做人人爽| 国产一区激情在线| 国产精品理论在线观看| 91视频com| 亚洲va欧美va天堂v国产综合| 国产成人8x视频一区二区| 国产精品久久毛片| 精品视频在线免费观看| 免费人成精品欧美精品| 欧美日精品一区视频| 日本欧美一区二区三区乱码| 精品久久久久久无| 日产国产欧美视频一区精品| 精品久久久久久综合日本欧美| 奇米影视一区二区三区小说| 欧美性高清videossexo| 久久狠狠亚洲综合| 国产精品第五页| 欧美乱妇23p| 欧美人牲a欧美精品| 亚洲精品国产高清久久伦理二区| 93久久精品日日躁夜夜躁欧美| 国产午夜精品一区二区三区视频| 韩日av一区二区| 悠悠色在线精品| 色婷婷综合久久久中文字幕| 日本三级亚洲精品| 国产精品妹子av| 91精品欧美久久久久久动漫| 国产成人一级电影| 三级影片在线观看欧美日韩一区二区| 欧美日韩午夜在线| 国产成人免费在线观看| 首页欧美精品中文字幕| 国产精品久久久久久久久图文区| 成人教育av在线| 麻豆成人av在线| 亚洲午夜一区二区三区| 国产肉丝袜一区二区| 宅男噜噜噜66一区二区66| 99精品视频在线播放观看|