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

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

?? certificate.java

?? linux下編程用 編譯軟件
?? JAVA
字號:
/* Certificate.java --- Certificate class   Copyright (C) 1999, 2003, 2004 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 java.security.cert;import java.io.ByteArrayInputStream;import java.io.InvalidObjectException;import java.io.ObjectStreamException;import java.io.Serializable;import java.security.InvalidKeyException;import java.security.NoSuchAlgorithmException;import java.security.NoSuchProviderException;import java.security.PublicKey;import java.security.SignatureException;/** * The Certificate class is an abstract class used to manage  * identity certificates. An identity certificate is a * combination of a principal and a public key which is  * certified by another principal. This is the puprose of  * Certificate Authorities (CA). *  * <p>This class is used to manage different types of certificates * but have important common puposes. Different types of  * certificates like X.509 and OpenPGP share general certificate * functions (like encoding and verifying) and information like * public keys. *  * <p>X.509, OpenPGP, and SDSI can be implemented by subclassing this * class even though they differ in storage methods and information * stored. * * @see CertificateFactory * @see X509Certificate * @since JDK 1.2 * @author Mark Benvenuto * @author Casey Marshall */public abstract class Certificate implements Serializable{  private static final long serialVersionUID = -6751606818319535583L;	  private String type;  /**     Constructs a new certificate of the specified type. An example     is "X.509".     @param type a valid standard name for a certificate.  */  protected Certificate(String type)  {    this.type = type;  }  /**     Returns the Certificate type.     @return a string representing the Certificate type  */  public final String getType()  {    return type;  }  /**     Compares this Certificate to other. It checks if the     object if instanceOf Certificate and then checks if     the encoded form matches.     @param other An Object to test for equality     @return true if equal, false otherwise  */  public boolean equals(Object other)  {    if( other instanceof Certificate ) {      try {	Certificate x = (Certificate) other;	if( getEncoded().length != x.getEncoded().length )	  return false;	byte[] b1 = getEncoded();	byte[] b2 = x.getEncoded();	for( int i = 0; i < b1.length; i++ )	  if( b1[i] != b2[i] )	    return false;      } catch( CertificateEncodingException cee ) { 	return false;      }      return true;    }    return false;  }  /**     Returns a hash code for this Certificate in its encoded     form.     @return A hash code of this class  */  public int hashCode()  {    return super.hashCode();  }  /**     Gets the DER ASN.1 encoded format for this Certificate.     It assumes each certificate has only one encoding format.     Ex: X.509 is encoded as ASN.1 DER     @return byte array containg encoded form     @throws CertificateEncodingException if an error occurs  */  public abstract byte[] getEncoded() throws CertificateEncodingException;  /**     Verifies that this Certificate was properly signed with the     PublicKey that corresponds to its private key.      @param key PublicKey to verify with     @throws CertificateException encoding error     @throws NoSuchAlgorithmException unsupported algorithm     @throws InvalidKeyException incorrect key     @throws NoSuchProviderException no provider     @throws SignatureException signature error  */  public abstract void verify(PublicKey key)    throws CertificateException,    NoSuchAlgorithmException,    InvalidKeyException,    NoSuchProviderException,    SignatureException;  /**     Verifies that this Certificate was properly signed with the     PublicKey that corresponds to its private key and uses     the signature engine provided by the provider.      @param key PublicKey to verify with     @param sigProvider Provider to use for signature algorithm     @throws CertificateException encoding error     @throws NoSuchAlgorithmException unsupported algorithm     @throws InvalidKeyException incorrect key     @throws NoSuchProviderException incorrect provider     @throws SignatureException signature error  */  public abstract void verify(PublicKey key,			      String sigProvider)    throws CertificateException,    NoSuchAlgorithmException,    InvalidKeyException,    NoSuchProviderException,    SignatureException;  /**     Returns a string representing the Certificate.     @return a string representing the Certificate.  */  public abstract String toString();  /**     Returns the public key stored in the Certificate.     @return The public key  */  public abstract PublicKey getPublicKey();  // Protected methods.  // ------------------------------------------------------------------------  /**   * Returns a replacement for this certificate to be serialized. This   * method returns the equivalent to the following for this class:   *   * <blockquote>   * <pre>new CertificateRep(getType(), getEncoded());</pre>   * </blockquote>   *   * <p>This thusly replaces the certificate with its name and its   * encoded form, which can be deserialized later with the {@link   * CertificateFactory} implementation for this certificate's type.   *   * @return The replacement object to be serialized.   * @throws ObjectStreamException If the replacement could not be   * created.   */  protected Object writeReplace() throws ObjectStreamException  {    try      {        return new CertificateRep(getType(), getEncoded());      }    catch (CertificateEncodingException cee)      {        throw new InvalidObjectException(cee.toString());      }  }  // Inner class.  // ------------------------------------------------------------------------  /**     Certificate.CertificateRep is an inner class used to provide an alternate     storage mechanism for serialized Certificates.  */  protected static class CertificateRep implements java.io.Serializable  {    /** From JDK1.4. */    private static final long serialVersionUID = -8563758940495660020L;      /** The certificate type, e.g. "X.509". */    private String type;    /** The encoded certificate data. */    private byte[] data;    /**     * Create an alternative representation of this certificate. The     * <code>(type, data)</code> pair is typically the certificate's     * type as returned by {@link Certificate#getType()} (i.e. the     * canonical name of the certificate type) and the encoded form as     * returned by {@link Certificate#getEncoded()}.     *     * <p>For example, X.509 certificates would create an instance of     * this class with the parameters "X.509" and the ASN.1     * representation of the certificate, encoded as DER bytes.     *     * @param type The certificate type.     * @param data The encoded certificate data.     */    protected CertificateRep(String type, byte[] data)    {      this.type = type;      this.data = data;    }    /**     * Deserialize this certificate replacement into the appropriate     * certificate object. That is, this method attempts to create a     * {@link CertificateFactory} for this certificate's type, then     * attempts to parse the encoded data with that factory, returning     * the resulting certificate.     *     * @return The deserialized certificate.     * @throws ObjectStreamException If there is no appropriate     * certificate factory for the given type, or if the encoded form     * cannot be parsed.     */    protected Object readResolve() throws ObjectStreamException    {      try        {          CertificateFactory fact = CertificateFactory.getInstance(type);          return fact.generateCertificate(new ByteArrayInputStream(data));        }      catch (Exception e)        {          throw new InvalidObjectException(e.toString());        }    }  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产麻豆免费人成网站| 午夜久久久久久久久| 亚洲免费电影在线| 久久99久久99小草精品免视看| 国产91清纯白嫩初高中在线观看| 色乱码一区二区三区88 | 91污在线观看| 欧美tk丨vk视频| 亚洲成人免费在线观看| 成人av免费网站| 国产丝袜美腿一区二区三区| 日本伊人色综合网| 欧美三级乱人伦电影| 成人免费在线播放视频| 国产盗摄一区二区| 精品福利av导航| 日本va欧美va瓶| 欧美人成免费网站| 亚洲综合一二区| 色偷偷成人一区二区三区91| 国产精品视频免费看| 国产精品99久久久久久久vr | 蜜臀精品久久久久久蜜臀| 在线观看网站黄不卡| 中文字幕在线一区免费| 大尺度一区二区| 国产欧美日本一区视频| 国产一区二区不卡在线| 精品久久久久久久久久久久久久久久久 | 亚洲激情在线激情| 91视频一区二区| 亚洲日本在线看| 一本一道综合狠狠老| 自拍偷拍国产亚洲| 色爱区综合激月婷婷| 夜夜爽夜夜爽精品视频| 色狠狠av一区二区三区| 亚洲午夜在线视频| 欧美精品在线一区二区三区| 午夜精品一区二区三区三上悠亚| 欧美日韩视频在线第一区| 午夜精品久久久久久| 91精品国产入口在线| 精品在线你懂的| 国产精品美女久久久久久久| 不卡高清视频专区| 亚洲一区成人在线| 欧美一区二区日韩| 国产麻豆精品一区二区| 中文字幕精品三区| 日本韩国一区二区三区| 日本亚洲三级在线| 2017欧美狠狠色| av在线一区二区三区| 亚洲一二三区不卡| 日韩视频不卡中文| 99热精品一区二区| 日一区二区三区| 久久九九国产精品| 欧美性猛交xxxx乱大交退制版 | 欧美成人r级一区二区三区| 国产在线观看免费一区| 综合自拍亚洲综合图不卡区| 欧美日韩国产免费| 国产精品自产自拍| 亚洲综合色噜噜狠狠| 精品久久五月天| 色综合天天综合狠狠| 青青草伊人久久| 国产精品电影一区二区三区| 欧美一区二区三区婷婷月色| 成人免费看的视频| 美女视频网站黄色亚洲| 中文字幕在线观看不卡视频| 日韩视频一区二区在线观看| av一区二区不卡| 极品销魂美女一区二区三区| 亚洲视频一区在线| 精品久久一二三区| 精品视频1区2区| 成人aaaa免费全部观看| 奇米精品一区二区三区四区 | 亚洲成人先锋电影| 日本一区二区高清| 欧美mv日韩mv亚洲| 欧美日韩精品一区二区| 91精品国产综合久久婷婷香蕉 | 国产一区二区三区国产| 亚洲va在线va天堂| 亚洲人亚洲人成电影网站色| 久久综合成人精品亚洲另类欧美 | 亚洲444eee在线观看| 中文字幕在线一区免费| 久久久国产午夜精品| 91.麻豆视频| 在线影院国内精品| 色综合色综合色综合色综合色综合| 韩国视频一区二区| 日韩激情一二三区| 亚洲成av人综合在线观看| 国产精品超碰97尤物18| 欧美国产乱子伦| 久久综合狠狠综合久久激情| 日韩一级黄色大片| 91精品福利在线一区二区三区| 在线亚洲一区二区| 在线免费观看成人短视频| av不卡免费电影| 成人av免费观看| 成人国产电影网| 成人av电影在线网| 9人人澡人人爽人人精品| 福利91精品一区二区三区| 国产高清不卡二三区| 国产精品白丝jk白祙喷水网站| 狠狠网亚洲精品| 国产精品538一区二区在线| 国精品**一区二区三区在线蜜桃| 蜜桃一区二区三区在线观看| 美女视频黄 久久| 蜜臀国产一区二区三区在线播放| 日本成人在线网站| 久久99精品国产| 国产电影一区在线| heyzo一本久久综合| 色婷婷国产精品| 欧美日韩一区二区三区不卡| 在线播放91灌醉迷j高跟美女| 5月丁香婷婷综合| 26uuu国产电影一区二区| 日本一区二区三区高清不卡| 国产精品高清亚洲| 亚洲综合男人的天堂| 青青草国产精品亚洲专区无| 极品少妇xxxx精品少妇| 不卡一区在线观看| 欧美视频一区二区三区| 欧美tickling网站挠脚心| 欧美激情综合在线| 亚洲激情av在线| 奇米影视一区二区三区| 风间由美一区二区三区在线观看| 91麻豆精品视频| 欧美一区二区视频网站| 国产精品天干天干在线综合| 亚洲一区二区四区蜜桃| 激情文学综合插| 91视频xxxx| 精品国产一二三区| 亚洲女人的天堂| 久久精品国产精品亚洲精品| 成人h精品动漫一区二区三区| 欧美日韩精品是欧美日韩精品| 欧美精品一区二区三区蜜臀| 亚洲精品日韩一| 国产真实乱子伦精品视频| 色94色欧美sute亚洲13| 亚洲精品在线免费播放| 亚洲国产精品一区二区www在线| 免费观看91视频大全| gogogo免费视频观看亚洲一| 日韩视频国产视频| 依依成人综合视频| 国产精品88888| 欧美一区二区三区免费观看视频| 亚洲欧洲日韩一区二区三区| 免费成人在线观看视频| 色综合天天狠狠| 国产日韩欧美a| 奇米一区二区三区| 91福利视频网站| 中文乱码免费一区二区 | 天堂午夜影视日韩欧美一区二区| 国产成人精品一区二区三区四区 | 亚洲mv在线观看| 91美女片黄在线观看| 久久精品欧美一区二区三区麻豆| 日韩和欧美一区二区| 在线日韩国产精品| 亚洲欧洲一区二区三区| 国产精品一区二区三区网站| 日韩一区二区免费高清| 亚洲国产视频在线| 日本韩国一区二区三区| 亚洲色欲色欲www| 丁香激情综合国产| 国产日韩影视精品| 国产一区二区三区不卡在线观看 | 色婷婷亚洲一区二区三区| 日本一区二区三区dvd视频在线| 久久9热精品视频| 制服.丝袜.亚洲.中文.综合| 天堂在线一区二区| 欧美精品欧美精品系列| 亚洲国产综合91精品麻豆| 欧美午夜影院一区| 亚洲国产wwwccc36天堂| 欧美系列在线观看| 午夜欧美电影在线观看| 欧美日韩国产综合一区二区三区|