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

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

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

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