Share via


SealedObject Constructors

Definition

Overloads

SealedObject(SealedObject)

Constructs a SealedObject object from the passed-in SealedObject.

SealedObject(ISerializable, Cipher)

Constructs a SealedObject from any Serializable object.

SealedObject(IntPtr, JniHandleOwnership)

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

SealedObject(SealedObject)

Constructs a SealedObject object from the passed-in SealedObject.

[Android.Runtime.Register(".ctor", "(Ljavax/crypto/SealedObject;)V", "")]
protected SealedObject (Javax.Crypto.SealedObject? so);
[<Android.Runtime.Register(".ctor", "(Ljavax/crypto/SealedObject;)V", "")>]
new Javax.Crypto.SealedObject : Javax.Crypto.SealedObject -> Javax.Crypto.SealedObject

Parameters

so
SealedObject

a SealedObject object

Attributes

Remarks

Constructs a SealedObject object from the passed-in SealedObject.

Java documentation for javax.crypto.SealedObject.SealedObject(javax.crypto.SealedObject).

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

SealedObject(ISerializable, Cipher)

Constructs a SealedObject from any Serializable object.

[Android.Runtime.Register(".ctor", "(Ljava/io/Serializable;Ljavax/crypto/Cipher;)V", "")]
public SealedObject (Java.IO.ISerializable? object, Javax.Crypto.Cipher? c);
[<Android.Runtime.Register(".ctor", "(Ljava/io/Serializable;Ljavax/crypto/Cipher;)V", "")>]
new Javax.Crypto.SealedObject : Java.IO.ISerializable * Javax.Crypto.Cipher -> Javax.Crypto.SealedObject

Parameters

object
ISerializable

the object to be sealed; can be null.

c
Cipher

the cipher used to seal the object.

Attributes

Exceptions

if the serialization fails.

if the specified cipher is a block cipher and the length of the serialized data is not a multiple of the ciphers block size.

if the cipher is null.

Remarks

Constructs a SealedObject from any Serializable object.

The given object is serialized, and its serialized contents are encrypted using the given Cipher, which must be fully initialized.

Any algorithm parameters that may be used in the encryption operation are stored inside of the new SealedObject.

Java documentation for javax.crypto.SealedObject.SealedObject(java.io.Serializable, javax.crypto.Cipher).

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

SealedObject(IntPtr, JniHandleOwnership)

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

protected SealedObject (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Javax.Crypto.SealedObject : nativeint * Android.Runtime.JniHandleOwnership -> Javax.Crypto.SealedObject

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