X509EncodedKeySpec Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
X509EncodedKeySpec(Byte[]) |
Creates a new |
X509EncodedKeySpec(Byte[], String) |
Creates a new |
X509EncodedKeySpec(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
X509EncodedKeySpec(Byte[])
Creates a new X509EncodedKeySpec
with the given encoded key.
[Android.Runtime.Register(".ctor", "([B)V", "")]
public X509EncodedKeySpec (byte[]? encodedKey);
[<Android.Runtime.Register(".ctor", "([B)V", "")>]
new Java.Security.Spec.X509EncodedKeySpec : byte[] -> Java.Security.Spec.X509EncodedKeySpec
Parameters
- encodedKey
- Byte[]
the key, which is assumed to be encoded according to the X.509 standard. The contents of the array are copied to protect against subsequent modification.
- Attributes
Remarks
Creates a new X509EncodedKeySpec
with the given encoded key.
Java documentation for java.security.spec.X509EncodedKeySpec.X509EncodedKeySpec(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
X509EncodedKeySpec(Byte[], String)
Creates a new X509EncodedKeySpec
with the given encoded key.
[Android.Runtime.Register(".ctor", "([BLjava/lang/String;)V", "", ApiSince=35)]
public X509EncodedKeySpec (byte[]? encodedKey, string? algorithm);
[<Android.Runtime.Register(".ctor", "([BLjava/lang/String;)V", "", ApiSince=35)>]
new Java.Security.Spec.X509EncodedKeySpec : byte[] * string -> Java.Security.Spec.X509EncodedKeySpec
Parameters
- encodedKey
- Byte[]
the key, which is assumed to be encoded according to the X.509 standard. The contents of the array are copied to protect against subsequent modification.
- algorithm
- String
the algorithm name of the encoded public key See the KeyFactory section in the Java Security Standard Algorithm Names Specification for information about standard algorithm names.
- Attributes
Remarks
Creates a new X509EncodedKeySpec
with the given encoded key. This constructor is useful when subsequent callers of the X509EncodedKeySpec
object might not know the algorithm of the key.
Added in 9.
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
X509EncodedKeySpec(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected X509EncodedKeySpec (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Security.Spec.X509EncodedKeySpec : nativeint * Android.Runtime.JniHandleOwnership -> Java.Security.Spec.X509EncodedKeySpec
Parameters
- 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.