CertificateFactory.GenerateCertPath 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GenerateCertPath(IList<Certificate>) |
產生一個 |
| GenerateCertPath(Stream) |
產生一個 |
| GenerateCertPath(Stream, String) |
產生一個 |
GenerateCertPath(IList<Certificate>)
產生一個 CertPath 物件並以 List a 初始化為 s Certificate。
[Android.Runtime.Register("generateCertPath", "(Ljava/util/List;)Ljava/security/cert/CertPath;", "")]
public Java.Security.Cert.CertPath? GenerateCertPath(System.Collections.Generic.IList<Java.Security.Cert.Certificate>? certificates);
[<Android.Runtime.Register("generateCertPath", "(Ljava/util/List;)Ljava/security/cert/CertPath;", "")>]
member this.GenerateCertPath : System.Collections.Generic.IList<Java.Security.Cert.Certificate> -> Java.Security.Cert.CertPath
參數
- certificates
- IList<Certificate>
a List 的Certificate
傳回
CertPath A 初始化後附有提供的憑證清單
- 屬性
備註
產生一個 CertPath 物件並以 List a 初始化為 s Certificate。
所提供的憑證必須是由 CertificateFactory. 它們會從所提供的 List 物件中複製出來。
在 1.4 版本加入。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
GenerateCertPath(Stream)
產生一個 CertPath 物件,並用從 inStream 讀取 InputStream 的資料初始化物件。
[Android.Runtime.Register("generateCertPath", "(Ljava/io/InputStream;)Ljava/security/cert/CertPath;", "")]
public Java.Security.Cert.CertPath? GenerateCertPath(System.IO.Stream? inStream);
[<Android.Runtime.Register("generateCertPath", "(Ljava/io/InputStream;)Ljava/security/cert/CertPath;", "")>]
member this.GenerateCertPath : System.IO.Stream -> Java.Security.Cert.CertPath
參數
- inStream
- Stream
包含資料的InputStream
傳回
CertPath a 以InputStream
- 屬性
例外狀況
如果偵測到解析問題。
備註
產生一個 CertPath 物件,並用從 inStream 讀取 InputStream 的資料初始化物件。 資料假設是預設編碼。 預設編碼的名稱是方法回傳#getCertPathEncodings getCertPathEncodings的Iterator第一個元素。
在 1.4 版本加入。
的 java.security.cert.CertificateFactory.generateCertPath(java.io.InputStream)Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
GenerateCertPath(Stream, String)
產生一個 CertPath 物件,並用從 inStream 讀取 InputStream 的資料初始化物件。
[Android.Runtime.Register("generateCertPath", "(Ljava/io/InputStream;Ljava/lang/String;)Ljava/security/cert/CertPath;", "")]
public Java.Security.Cert.CertPath? GenerateCertPath(System.IO.Stream? inStream, string? encoding);
[<Android.Runtime.Register("generateCertPath", "(Ljava/io/InputStream;Ljava/lang/String;)Ljava/security/cert/CertPath;", "")>]
member this.GenerateCertPath : System.IO.Stream * string -> Java.Security.Cert.CertPath
參數
- inStream
- Stream
包含資料的InputStream
- encoding
- String
資料所使用的編碼方式
傳回
CertPath a 以InputStream
- 屬性
例外狀況
如果偵測到解析問題。
如果提供者未實作此方法,
備註
產生一個 CertPath 物件,並用從 inStream 讀取 InputStream 的資料初始化物件。 資料假設屬於指定的編碼方式。 有關標準編碼名稱及其格式的資訊,請參閱 Java 密碼學架構標準演算法名稱文件中的 CertPath 編碼章節。
在 1.4 版本加入。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。