KeyRep 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
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
- 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
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.