다음을 통해 공유


HttpsURLConnection.PeerPrincipal 속성

정의

세션 정의의 일부로 설정된 서버의 보안 주체를 반환합니다.

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을 반환합니다.

특성

예외

피어의 ID가 확인되지 않은 경우

연결이 아직 설정되지 않은 경우

설명

세션 정의의 일부로 설정된 서버의 보안 주체를 반환합니다.

참고: 하위 클래스는 이 메서드를 재정의해야 합니다. 재정의되지 않은 경우 인증서 기반 ciphersuites에 대해 서버의 최종 엔터티 인증서의 X500Principal을 반환하거나 Kerberos와 같은 비 인증서 기반 암호 수트에 대해 SSLPeerUnverifiedException을 throw합니다.

1.5에 추가되었습니다.

에 대한 javax.net.ssl.HttpsURLConnection.getPeerPrincipal()Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상