KeyStore.SetKeyEntry 메서드

정의

오버로드

Name Description
SetKeyEntry(String, Byte[], Certificate[])

지정된 별칭에 지정된 키(이미 보호된 키)를 할당합니다.

SetKeyEntry(String, IKey, Char[], Certificate[])

지정된 별칭에 지정된 키를 할당하여 지정된 암호로 보호합니다.

SetKeyEntry(String, Byte[], Certificate[])

지정된 별칭에 지정된 키(이미 보호된 키)를 할당합니다.

[Android.Runtime.Register("setKeyEntry", "(Ljava/lang/String;[B[Ljava/security/cert/Certificate;)V", "")]
public void SetKeyEntry(string? alias, byte[]? key, Java.Security.Cert.Certificate[]? chain);
[<Android.Runtime.Register("setKeyEntry", "(Ljava/lang/String;[B[Ljava/security/cert/Certificate;)V", "")>]
member this.SetKeyEntry : string * byte[] * Java.Security.Cert.Certificate[] -> unit

매개 변수

alias
String

별칭 이름

key
Byte[]

별칭과 연결할 키(보호된 형식)

chain
Certificate[]

해당 공개 키에 대한 인증서 체인입니다(보호된 키가 형식 java.security.PrivateKey인 경우에만 유용).

특성

예외

KeyStore 초기화되지 않았거나 null인 경우 key

key a PrivateKey 이고 chain 그렇지 않습니다.

if alias is .null

설명

지정된 별칭에 지정된 키(이미 보호된 키)를 할당합니다.

보호된 키가 형식 java.security.PrivateKey인 경우 해당 공개 키를 인증하는 인증서 체인과 함께 사용해야 합니다. 기본 키 저장소 구현이 형식 jkskey 인 경우 PKCS #8 표준에 정의된 대로 EncryptedPrivateKeyInfo 인코딩되어야 합니다.

지정된 별칭이 이미 있는 경우 연결된 키 저장소 정보는 지정된 키(및 인증서 체인)에 의해 재정의됩니다.

에 대한 java.security.KeyStore.setKeyEntry(java.lang.String, byte[], java.security.cert.Certificate[])Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상

SetKeyEntry(String, IKey, Char[], Certificate[])

지정된 별칭에 지정된 키를 할당하여 지정된 암호로 보호합니다.

[Android.Runtime.Register("setKeyEntry", "(Ljava/lang/String;Ljava/security/Key;[C[Ljava/security/cert/Certificate;)V", "")]
public void SetKeyEntry(string? alias, Java.Security.IKey? key, char[]? password, Java.Security.Cert.Certificate[]? chain);
[<Android.Runtime.Register("setKeyEntry", "(Ljava/lang/String;Ljava/security/Key;[C[Ljava/security/cert/Certificate;)V", "")>]
member this.SetKeyEntry : string * Java.Security.IKey * char[] * Java.Security.Cert.Certificate[] -> unit

매개 변수

alias
String

별칭 이름

key
IKey

별칭과 연결할 키

password
Char[]

키를 보호하는 암호

chain
Certificate[]

해당 공개 키에 대한 인증서 체인입니다(지정된 키가 형식 java.security.PrivateKey인 경우에만 필요).

특성

예외

초기 KeyStore 화되지 않은 경우

가 a PrivateKey 이고 chain 인증서를 포함하지 않는 경우 key

if alias is .null

설명

지정된 별칭에 지정된 키를 할당하여 지정된 암호로 보호합니다.

지정된 키가 형식 java.security.PrivateKey인 경우 해당 공개 키를 인증하는 인증서 체인을 동반해야 합니다.

지정된 별칭이 이미 있는 경우 연결된 키 저장소 정보는 지정된 키(및 인증서 체인)에 의해 재정의됩니다.

에 대한 java.security.KeyStore.setKeyEntry(java.lang.String, java.security.Key, char[], java.security.cert.Certificate[])Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상