다음을 통해 공유


PKCS8EncodedKeySpec Constructors

Definition

Overloads

PKCS8EncodedKeySpec(Byte[])

Creates a new PKCS8EncodedKeySpec with the given encoded key.

PKCS8EncodedKeySpec(Byte[], String)

Creates a new PKCS8EncodedKeySpec with the given encoded key and algorithm.

PKCS8EncodedKeySpec(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

PKCS8EncodedKeySpec(Byte[])

Creates a new PKCS8EncodedKeySpec with the given encoded key.

[Android.Runtime.Register(".ctor", "([B)V", "")]
public PKCS8EncodedKeySpec (byte[]? encodedKey);
[<Android.Runtime.Register(".ctor", "([B)V", "")>]
new Java.Security.Spec.PKCS8EncodedKeySpec : byte[] -> Java.Security.Spec.PKCS8EncodedKeySpec

Parameters

encodedKey
Byte[]

the key, which is assumed to be encoded according to the PKCS #8 standard. The contents of the array are copied to protect against subsequent modification.

Attributes

Remarks

Creates a new PKCS8EncodedKeySpec with the given encoded key.

Java documentation for java.security.spec.PKCS8EncodedKeySpec.PKCS8EncodedKeySpec(byte[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

PKCS8EncodedKeySpec(Byte[], String)

Creates a new PKCS8EncodedKeySpec with the given encoded key and algorithm.

[Android.Runtime.Register(".ctor", "([BLjava/lang/String;)V", "", ApiSince=35)]
public PKCS8EncodedKeySpec (byte[]? encodedKey, string? algorithm);
[<Android.Runtime.Register(".ctor", "([BLjava/lang/String;)V", "", ApiSince=35)>]
new Java.Security.Spec.PKCS8EncodedKeySpec : byte[] * string -> Java.Security.Spec.PKCS8EncodedKeySpec

Parameters

encodedKey
Byte[]

the key, which is assumed to be encoded according to the PKCS #8 standard. The contents of the array are copied to protect against subsequent modification.

algorithm
String

the algorithm name of the encoded private key See the KeyFactory section in the Java Security Standard Algorithm Names Specification for information about standard algorithm names.

Attributes

Remarks

Creates a new PKCS8EncodedKeySpec with the given encoded key and algorithm. This constructor is useful when subsequent callers of the PKCS8EncodedKeySpec object might not know the algorithm of the private key.

Added in 9.

Java documentation for java.security.spec.PKCS8EncodedKeySpec.PKCS8EncodedKeySpec(byte[], java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

PKCS8EncodedKeySpec(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected PKCS8EncodedKeySpec (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Security.Spec.PKCS8EncodedKeySpec : nativeint * Android.Runtime.JniHandleOwnership -> Java.Security.Spec.PKCS8EncodedKeySpec

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to