public class CryptoStream extends Stream
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.Cryptography.CryptoStream
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Security.Cryptography, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Security.Cryptography
|
static java.lang.String |
className
Qualified class name: System.Security.Cryptography.CryptoStream
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
CryptoStream() |
CryptoStream(java.lang.Object instance)
Internal constructor.
|
CryptoStream(Stream stream,
ICryptoTransform transform,
CryptoStreamMode mode) |
CryptoStream(Stream stream,
ICryptoTransform transform,
CryptoStreamMode mode,
boolean leaveOpen) |
| Modifier and Type | Method and Description |
|---|---|
IAsyncResult |
BeginRead(byte[] buffer,
int offset,
int count,
AsyncCallback callback,
NetObject state) |
IAsyncResult |
BeginRead(JCORefOut dupParam0,
int dupParam1,
int dupParam2,
AsyncCallback dupParam3,
NetObject dupParam4) |
IAsyncResult |
BeginWrite(byte[] buffer,
int offset,
int count,
AsyncCallback callback,
NetObject state) |
IAsyncResult |
BeginWrite(JCORefOut dupParam0,
int dupParam1,
int dupParam2,
AsyncCallback dupParam3,
NetObject dupParam4) |
static CryptoStream |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into CryptoStream, a cast assert is made to check if types are compatible. |
void |
Clear() |
void |
CopyTo(Stream destination,
int bufferSize) |
Task |
CopyToAsync(Stream destination,
int bufferSize,
CancellationToken cancellationToken) |
ValueTask |
DisposeAsync() |
int |
EndRead(IAsyncResult asyncResult) |
void |
EndWrite(IAsyncResult asyncResult) |
void |
Flush() |
Task |
FlushAsync(CancellationToken cancellationToken) |
void |
FlushFinalBlock() |
ValueTask |
FlushFinalBlockAsync(CancellationToken cancellationToken) |
boolean |
getHasFlushedFinalBlock() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
int |
Read(byte[] buffer,
int offset,
int count) |
int |
Read(JCORefOut dupParam0,
int dupParam1,
int dupParam2) |
int |
ReadByte() |
long |
Seek(long offset,
SeekOrigin origin) |
void |
setJCOInstance(JCObject instance) |
void |
SetLength(long value) |
void |
Write(byte[] buffer,
int offset,
int count) |
void |
Write(JCORefOut dupParam0,
int dupParam1,
int dupParam2) |
Task |
WriteAsync(byte[] buffer,
int offset,
int count,
CancellationToken cancellationToken) |
Task |
WriteAsync(JCORefOut dupParam0,
int dupParam1,
int dupParam2,
CancellationToken dupParam3) |
void |
WriteByte(byte value) |
close, Close, CopyTo, CopyToAsync, CopyToAsync, CopyToAsync, Dispose, FlushAsync, getCanRead, getCanSeek, getCanTimeout, getCanWrite, getLength, getPosition, getReadTimeout, getWriteTimeout, ReadExactly, ReadExactly, ReadExactlyAsync, ReadExactlyAsync, setPosition, setReadTimeout, setWriteTimeout, Synchronized, WriteAsync, WriteAsyncGetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public CryptoStream()
throws java.lang.Throwable
java.lang.Throwablepublic CryptoStream(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic CryptoStream(Stream stream, ICryptoTransform transform, CryptoStreamMode mode) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionpublic CryptoStream(Stream stream, ICryptoTransform transform, CryptoStreamMode mode, boolean leaveOpen) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, NetObject state) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, TaskSchedulerException, ArgumentException
BeginRead in class Streamjava.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionPlatformNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionTaskSchedulerExceptionArgumentExceptionpublic IAsyncResult BeginRead(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, TaskSchedulerException, ArgumentException
BeginRead in class Streamjava.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionPlatformNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionTaskSchedulerExceptionArgumentExceptionpublic IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, NetObject state) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, TaskSchedulerException, ArgumentException
BeginWrite in class Streamjava.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionPlatformNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionTaskSchedulerExceptionArgumentExceptionpublic IAsyncResult BeginWrite(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, TaskSchedulerException, ArgumentException
BeginWrite in class Streamjava.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionPlatformNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionTaskSchedulerExceptionArgumentExceptionpublic static CryptoStream cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into CryptoStream, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedCryptoStream instancejava.lang.Throwable - in case of error during cast operationpublic void Clear()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentNullException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionpublic void CopyTo(Stream destination, int bufferSize) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, ArrayTypeMismatchException
public Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException
CopyToAsync in class Streamjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionObjectDisposedExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionFormatExceptionpublic ValueTask DisposeAsync() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, InvalidOperationException, IndexOutOfRangeException
DisposeAsync in class Streamjava.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionpublic int EndRead(IAsyncResult asyncResult) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, EventSourceException, InvalidOperationException, TaskSchedulerException, TaskCanceledException, AggregateException
EndRead in class Streamjava.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionEventSourceExceptionInvalidOperationExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionpublic void EndWrite(IAsyncResult asyncResult) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, EventSourceException, InvalidOperationException, TaskSchedulerException, TaskCanceledException, AggregateException
EndWrite in class Streamjava.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionEventSourceExceptionInvalidOperationExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionpublic void Flush()
throws java.lang.Throwable
public Task FlushAsync(CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, OutOfMemoryException, EventSourceException, IndexOutOfRangeException
FlushAsync in class Streamjava.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionInvalidOperationExceptionOutOfMemoryExceptionEventSourceExceptionIndexOutOfRangeExceptionpublic void FlushFinalBlock()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
IndexOutOfRangeException,
TaskSchedulerException,
ObjectDisposedException,
OperationCanceledException,
TaskCanceledException,
AggregateException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionIndexOutOfRangeExceptionTaskSchedulerExceptionObjectDisposedExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionpublic ValueTask FlushFinalBlockAsync(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionpublic boolean getHasFlushedFinalBlock()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class StreamString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class StreamString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class StreamObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class StreamString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class StreamJCType representing the CLR Type of the instantiated Classpublic int Read(byte[] buffer,
int offset,
int count)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
ArrayTypeMismatchException,
PlatformNotSupportedException,
EventSourceException,
TaskSchedulerException,
TaskCanceledException,
AggregateException
Read in class Streamjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionEventSourceExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionpublic int Read(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ArrayTypeMismatchException, PlatformNotSupportedException, EventSourceException, TaskSchedulerException, TaskCanceledException, AggregateException
Read in class Streamjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionEventSourceExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionpublic int ReadByte()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
IndexOutOfRangeException,
PlatformNotSupportedException,
FormatException
ReadByte in class Streamjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionFormatExceptionpublic long Seek(long offset,
SeekOrigin origin)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
NotSupportedException
Seek in class Streamjava.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionNotSupportedExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class Streampublic void SetLength(long value)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
NotSupportedException
SetLength in class Streamjava.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionNotSupportedExceptionpublic void Write(byte[] buffer,
int offset,
int count)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
ArrayTypeMismatchException,
PlatformNotSupportedException,
IndexOutOfRangeException,
TaskSchedulerException,
ObjectDisposedException,
OperationCanceledException,
TaskCanceledException,
AggregateException
Write in class Streamjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionTaskSchedulerExceptionObjectDisposedExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionpublic void Write(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ArrayTypeMismatchException, PlatformNotSupportedException, IndexOutOfRangeException, TaskSchedulerException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, AggregateException
Write in class Streamjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionTaskSchedulerExceptionObjectDisposedExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionpublic Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ArrayTypeMismatchException, PlatformNotSupportedException, IndexOutOfRangeException
WriteAsync in class Streamjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionpublic Task WriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2, CancellationToken dupParam3) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ArrayTypeMismatchException, PlatformNotSupportedException, IndexOutOfRangeException
WriteAsync in class Streamjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionIndexOutOfRangeException