KeyRep Constructors

Definition

Overloads

KeyRep(IntPtr, JniHandleOwnership)

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

KeyRep(KeyRep+Type, String, String, Byte[])

Construct the alternate Key class.

KeyRep(IntPtr, JniHandleOwnership)

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

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

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

KeyRep(KeyRep+Type, String, String, Byte[])

Construct the alternate Key class.

[Android.Runtime.Register(".ctor", "(Ljava/security/KeyRep$Type;Ljava/lang/String;Ljava/lang/String;[B)V", "")]
public KeyRep (Java.Security.KeyRep.Type? type, string? algorithm, string? format, byte[]? encoded);
[<Android.Runtime.Register(".ctor", "(Ljava/security/KeyRep$Type;Ljava/lang/String;Ljava/lang/String;[B)V", "")>]
new Java.Security.KeyRep : Java.Security.KeyRep.Type * string * string * byte[] -> Java.Security.KeyRep

Parameters

type
KeyRep.Type

either one of Type.SECRET, Type.PUBLIC, or Type.PRIVATE

algorithm
String

the algorithm returned from Key.getAlgorithm()

format
String

the encoding format returned from Key.getFormat()

encoded
Byte[]

the encoded bytes returned from Key.getEncoded()

Attributes

Exceptions

if type, algorithm, format or encoded is null .

Remarks

Java documentation for java.security.KeyRep.KeyRep(java.security.Type, java.lang.String, java.lang.String, 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