Sdílet prostřednictvím


SignedObject(ISerializable, IPrivateKey, Signature) Constructor

Definition

Constructs a SignedObject from any Serializable object.

[Android.Runtime.Register(".ctor", "(Ljava/io/Serializable;Ljava/security/PrivateKey;Ljava/security/Signature;)V", "")]
public SignedObject (Java.IO.ISerializable? object, Java.Security.IPrivateKey? signingKey, Java.Security.Signature? signingEngine);
[<Android.Runtime.Register(".ctor", "(Ljava/io/Serializable;Ljava/security/PrivateKey;Ljava/security/Signature;)V", "")>]
new Java.Security.SignedObject : Java.IO.ISerializable * Java.Security.IPrivateKey * Java.Security.Signature -> Java.Security.SignedObject

Parameters

object
ISerializable

the object to be signed.

signingKey
IPrivateKey

the private key for signing.

signingEngine
Signature

the signature signing engine.

Attributes

Exceptions

if a serialization error occurs.

if the private key is not valid.

if signature generation failed.

Remarks

Constructs a SignedObject from any Serializable object. The given object is signed with the given signing key, using the designated signature engine.

Java documentation for java.security.SignedObject.SignedObject(java.io.Serializable, java.security.PrivateKey, java.security.Signature).

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