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

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

?? keystore.java

?? this gcc-g++-3.3.1.tar.gz is a source file of gcc, you can learn more about gcc through this codes f
?? 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一区二区三区免费野_久草精品视频
精品日韩在线一区| 色综合激情五月| 午夜在线电影亚洲一区| 亚洲免费视频成人| 亚洲三级在线播放| 亚洲综合免费观看高清在线观看| 国产精品久久久久久亚洲伦| 中文字幕第一页久久| 国产日产欧美一区| 中文字幕精品一区二区三区精品 | 91免费观看在线| 99久久婷婷国产精品综合| 99久久国产综合精品色伊| 91蜜桃传媒精品久久久一区二区| 91首页免费视频| 欧美日韩在线播放三区四区| 在线播放亚洲一区| 精品成人一区二区三区| 久久九九99视频| 国产精品美女一区二区三区| 日韩理论电影院| 午夜视黄欧洲亚洲| 经典三级在线一区| 成人黄色一级视频| 欧美色电影在线| 精品国产乱码久久久久久影片| 国产亚洲婷婷免费| 亚洲一卡二卡三卡四卡| 青青草97国产精品免费观看无弹窗版| 久久电影网电视剧免费观看| 国产成人久久精品77777最新版本| 99久久久国产精品| 蜜桃精品视频在线| 精品一区二区三区免费| 狠狠色狠狠色综合| 国产成人在线影院| 在线观看不卡一区| 精品成人一区二区三区四区| 椎名由奈av一区二区三区| 亚洲成av人片| 成人午夜电影网站| 7777精品伊人久久久大香线蕉经典版下载 | 日韩免费视频一区二区| 国产亚洲一区二区三区| 亚洲影院久久精品| 青青草原综合久久大伊人精品| 国产成人精品亚洲日本在线桃色| eeuss鲁片一区二区三区在线看| 欧美日韩免费在线视频| 日本一区二区三区四区| 日韩国产精品久久久| 91麻豆精东视频| 久久新电视剧免费观看| 亚洲一区二区三区精品在线| 国产成人在线观看| 日韩欧美在线影院| 午夜欧美大尺度福利影院在线看 | 国产精品一区二区久久精品爱涩| 色哟哟在线观看一区二区三区| 精品少妇一区二区三区在线视频| 亚洲综合偷拍欧美一区色| 国产精品一二三| 日韩欧美国产小视频| 亚洲成人在线免费| 色综合网站在线| 中文字幕av一区二区三区免费看 | 极品少妇一区二区三区精品视频| 欧美色视频在线观看| 亚洲视频免费在线观看| 波多野结衣中文一区| 久久免费国产精品| 国产乱理伦片在线观看夜一区| 777午夜精品免费视频| 亚洲五月六月丁香激情| 色悠悠久久综合| 一区二区激情小说| 色偷偷88欧美精品久久久| 亚洲欧美日韩国产另类专区| 92国产精品观看| 成人免费一区二区三区视频 | 欧美日韩一区二区三区高清| 亚洲欧美日韩在线| 色狠狠一区二区三区香蕉| 日韩毛片高清在线播放| 91美女精品福利| 亚洲男人的天堂在线aⅴ视频| 色婷婷av一区二区三区软件| 亚洲激情六月丁香| 欧美在线色视频| 日本中文在线一区| 日韩三级视频在线看| 国模无码大尺度一区二区三区| 国产亚洲成aⅴ人片在线观看 | 97se亚洲国产综合自在线 | 欧美老年两性高潮| 免费久久精品视频| 国产丝袜在线精品| 91免费精品国自产拍在线不卡| 亚洲小少妇裸体bbw| 日韩一区二区三区高清免费看看| 久久精品国产一区二区| 日本一区二区三区免费乱视频| 91亚洲永久精品| 天堂成人免费av电影一区| 日韩免费观看高清完整版在线观看| 国产最新精品精品你懂的| 国产精品免费视频网站| 精品视频1区2区3区| 激情五月播播久久久精品| 亚洲欧洲在线观看av| 欧美乱熟臀69xxxxxx| 国产福利91精品| 樱桃视频在线观看一区| 欧美电影免费观看高清完整版在线观看 | 国产精品亚洲一区二区三区在线| 亚洲免费观看高清完整版在线观看 | 午夜精品久久久| 国产视频一区在线观看 | 欧美白人最猛性xxxxx69交| 国产成人aaa| 日韩和欧美一区二区| 亚洲欧洲成人自拍| 精品国产a毛片| 在线日韩一区二区| 国产精品一区2区| 偷拍一区二区三区四区| 亚洲欧洲性图库| 精品国产免费一区二区三区四区| 一本到一区二区三区| 国产精品一区在线观看乱码| 日韩精品三区四区| 亚洲三级在线免费| 亚洲国产精品成人综合| 欧美一区在线视频| 欧美在线不卡视频| 成人激情小说网站| 国产精品影视网| 麻豆成人久久精品二区三区红| 一区二区三区成人| 国产精品成人免费在线| 2023国产一二三区日本精品2022| 欧洲视频一区二区| www.欧美精品一二区| 国产999精品久久久久久绿帽| 久久精品国产在热久久| 三级不卡在线观看| 亚洲成a人v欧美综合天堂下载| 自拍偷拍欧美激情| 综合电影一区二区三区 | 爽好多水快深点欧美视频| 亚洲视频一区二区在线| 日本一区二区久久| 国产精品无遮挡| 久久久久久久久久久久久女国产乱 | 国产一区二区h| 久色婷婷小香蕉久久| 麻豆成人久久精品二区三区红| 日本最新不卡在线| 日本在线观看不卡视频| 蜜桃av一区二区在线观看| 美女诱惑一区二区| 国内精品在线播放| 国产**成人网毛片九色| 成人三级伦理片| 99视频一区二区| 欧洲色大大久久| 欧美一区二区三区四区久久| 精品国产123| 欧美激情一区二区三区在线| 中文字幕一区免费在线观看 | 午夜激情一区二区| 日韩中文字幕91| 久久精品99国产精品日本| 国产黑丝在线一区二区三区| 国产激情一区二区三区四区| 波多野结衣欧美| 在线观看日韩高清av| 3atv一区二区三区| 久久婷婷国产综合精品青草| 国产精品久久精品日日| 一区二区欧美视频| 青草国产精品久久久久久| 国产一区二区三区四区在线观看| 成人黄色综合网站| 欧美日韩国产在线播放网站| 精品国产乱码久久久久久夜甘婷婷| 中文字幕不卡在线观看| 亚洲午夜三级在线| 国产一区二区三区高清播放| 99久久99久久精品免费看蜜桃| 欧美日韩国产高清一区| 国产91清纯白嫩初高中在线观看 | 欧美色图天堂网| 日韩欧美精品在线视频| 亚洲国产精华液网站w | 日本在线播放一区二区三区| 国产成人综合精品三级| 欧美性xxxxxxxx| 国产精品午夜在线观看| 午夜欧美电影在线观看|