HttpsURLConnection.PeerPrincipal 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳伺服器的主體,該主體是定義會話的一部分。
public virtual Java.Security.IPrincipal? PeerPrincipal { [Android.Runtime.Register("getPeerPrincipal", "()Ljava/security/Principal;", "GetGetPeerPrincipalHandler")] get; }
[<get: Android.Runtime.Register("getPeerPrincipal", "()Ljava/security/Principal;", "GetGetPeerPrincipalHandler")>]
member this.PeerPrincipal : Java.Security.IPrincipal
屬性值
服務生的校長。 對於基於 X509 的密碼套件,回傳端實體憑證的 X500Principal,對於 Kerberos 密碼套件則回傳 KerberosPrincipal。
- 屬性
例外狀況
如果尚未驗證該節點的身份。
如果還沒建立連結的話。
備註
回傳伺服器的主體,該主體是定義會話的一部分。
注意:子職業應該會覆蓋此方法。 若未被覆寫,則會預設回傳伺服器端實體憑證的 X500Principal,針對憑證基礎密碼套件,或對非憑證基礎密碼套件(如 Kerberos)拋出 SSLPeerUnverifiedException。
已在1.5中新增。
Java 文件 javax.net.ssl.HttpsURLConnection.getPeerPrincipal()。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。