Package system.security.cryptography
Class CryptoStream
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.io.Stream
-
- system.security.cryptography.CryptoStream
-
- All Implemented Interfaces:
AutoCloseable
,IJCOBridgeReflected
public class CryptoStream extends Stream
The base .NET class managing System.Security.Cryptography.CryptoStream, System.Security.Cryptography.Primitives, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.See: https://docs.microsoft.com/en-us/dotnet/api/System.Security.Cryptography.CryptoStream
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: System.Security.Cryptography.Primitives, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic String
assemblyShortName
Assembly name: System.Security.Cryptography.Primitivesstatic String
className
Qualified class name: System.Security.Cryptography.CryptoStreamstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description CryptoStream()
CryptoStream(Object instance)
Internal constructor.CryptoStream(Stream stream, ICryptoTransform transform, CryptoStreamMode mode)
CryptoStream(Stream stream, ICryptoTransform transform, CryptoStreamMode mode, boolean leaveOpen)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 theIJCOBridgeReflected
instance intoCryptoStream
, 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()
String
getJCOAssemblyName()
Returns the reflected Assembly nameString
getJCOClassName()
Returns the reflected Class nameObject
getJCOInstance()
Returns the instantiated classString
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typeint
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)
-
Methods inherited from class system.io.Stream
close, Close, CopyTo, CopyToAsync, CopyToAsync, CopyToAsync, Dispose, FlushAsync, getCanRead, getCanSeek, getCanTimeout, getCanWrite, getLength, getPosition, getReadTimeout, getWriteTimeout, setPosition, setReadTimeout, setWriteTimeout, Synchronized, WriteAsync, WriteAsync
-
Methods inherited from class system.MarshalByRefObject
GetLifetimeService, InitializeLifetimeService
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: System.Security.Cryptography.Primitives, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: System.Security.Cryptography.Primitives- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.Security.Cryptography.CryptoStream- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CryptoStream
public CryptoStream(Object instance) throws Throwable
Internal constructor. Use with caution- Throws:
Throwable
-
CryptoStream
public CryptoStream(Stream stream, ICryptoTransform transform, CryptoStreamMode mode, boolean leaveOpen) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
CryptoStream
public CryptoStream(Stream stream, ICryptoTransform transform, CryptoStreamMode mode) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException
-
-
Method Detail
-
getJCOAssemblyName
public String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classStream
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classStream
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classStream
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classStream
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classStream
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classStream
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static CryptoStream cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoCryptoStream
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
CryptoStream
instance- Throws:
Throwable
- in case of error during cast operation
-
EndRead
public int EndRead(IAsyncResult asyncResult) throws Throwable, PlatformNotSupportedException, EventSourceException, InvalidOperationException, TaskSchedulerException, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, TaskCanceledException, AggregateException
-
Read
public int Read(byte[] buffer, int offset, int count) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, EventSourceException, TaskSchedulerException, ObjectDisposedException, TaskCanceledException, AggregateException
- Overrides:
Read
in classStream
- Throws:
Throwable
ArgumentException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
ArrayTypeMismatchException
EventSourceException
TaskSchedulerException
ObjectDisposedException
TaskCanceledException
AggregateException
-
Read
public int Read(JCORefOut dupParam0, int dupParam1, int dupParam2) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, EventSourceException, TaskSchedulerException, ObjectDisposedException, TaskCanceledException, AggregateException
- Overrides:
Read
in classStream
- Throws:
Throwable
ArgumentException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
ArrayTypeMismatchException
EventSourceException
TaskSchedulerException
ObjectDisposedException
TaskCanceledException
AggregateException
-
ReadByte
public int ReadByte() throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
Seek
public long Seek(long offset, SeekOrigin origin) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException
- Overrides:
Seek
in classStream
- Throws:
Throwable
NotSupportedException
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
CultureNotFoundException
-
BeginRead
public IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, NetObject state) throws Throwable, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, PlatformNotSupportedException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, InvalidOperationException, TaskSchedulerException, ArgumentException
- Overrides:
BeginRead
in classStream
- Throws:
Throwable
ArgumentNullException
ArgumentOutOfRangeException
NotSupportedException
PlatformNotSupportedException
ObjectDisposedException
OperationCanceledException
TaskCanceledException
AggregateException
SemaphoreFullException
InvalidOperationException
TaskSchedulerException
ArgumentException
-
BeginRead
public IAsyncResult BeginRead(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4) throws Throwable, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, PlatformNotSupportedException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, InvalidOperationException, TaskSchedulerException, ArgumentException
- Overrides:
BeginRead
in classStream
- Throws:
Throwable
ArgumentNullException
ArgumentOutOfRangeException
NotSupportedException
PlatformNotSupportedException
ObjectDisposedException
OperationCanceledException
TaskCanceledException
AggregateException
SemaphoreFullException
InvalidOperationException
TaskSchedulerException
ArgumentException
-
BeginWrite
public IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, NetObject state) throws Throwable, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, PlatformNotSupportedException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, InvalidOperationException, TaskSchedulerException, ArgumentException
- Overrides:
BeginWrite
in classStream
- Throws:
Throwable
ArgumentNullException
ArgumentOutOfRangeException
NotSupportedException
PlatformNotSupportedException
ObjectDisposedException
OperationCanceledException
TaskCanceledException
AggregateException
SemaphoreFullException
InvalidOperationException
TaskSchedulerException
ArgumentException
-
BeginWrite
public IAsyncResult BeginWrite(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4) throws Throwable, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, PlatformNotSupportedException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, InvalidOperationException, TaskSchedulerException, ArgumentException
- Overrides:
BeginWrite
in classStream
- Throws:
Throwable
ArgumentNullException
ArgumentOutOfRangeException
NotSupportedException
PlatformNotSupportedException
ObjectDisposedException
OperationCanceledException
TaskCanceledException
AggregateException
SemaphoreFullException
InvalidOperationException
TaskSchedulerException
ArgumentException
-
CopyToAsync
public Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
FlushAsync
public Task FlushAsync(CancellationToken cancellationToken) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, IndexOutOfRangeException, EventSourceException, OutOfMemoryException
-
WriteAsync
public Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException
-
WriteAsync
public Task WriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2, CancellationToken dupParam3) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException
-
DisposeAsync
public ValueTask DisposeAsync() throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, InvalidOperationException, IndexOutOfRangeException
-
FlushFinalBlockAsync
public ValueTask FlushFinalBlockAsync(CancellationToken cancellationToken) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException
-
Clear
public void Clear() throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
CopyTo
public void CopyTo(Stream destination, int bufferSize) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
EndWrite
public void EndWrite(IAsyncResult asyncResult) throws Throwable, PlatformNotSupportedException, EventSourceException, InvalidOperationException, TaskSchedulerException, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, TaskCanceledException, AggregateException
-
FlushFinalBlock
public void FlushFinalBlock() throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException, TaskSchedulerException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, AggregateException
- Throws:
Throwable
NotSupportedException
ArgumentException
ArgumentNullException
PlatformNotSupportedException
ArgumentOutOfRangeException
InvalidOperationException
IndexOutOfRangeException
TaskSchedulerException
ObjectDisposedException
OperationCanceledException
TaskCanceledException
AggregateException
-
SetLength
public void SetLength(long value) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException
- Overrides:
SetLength
in classStream
- Throws:
Throwable
NotSupportedException
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
CultureNotFoundException
-
Write
public void Write(byte[] buffer, int offset, int count) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, TaskSchedulerException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, AggregateException
- Overrides:
Write
in classStream
- Throws:
Throwable
ArgumentException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
ArrayTypeMismatchException
TaskSchedulerException
ObjectDisposedException
OperationCanceledException
TaskCanceledException
AggregateException
-
Write
public void Write(JCORefOut dupParam0, int dupParam1, int dupParam2) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, TaskSchedulerException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, AggregateException
- Overrides:
Write
in classStream
- Throws:
Throwable
ArgumentException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
ArrayTypeMismatchException
TaskSchedulerException
ObjectDisposedException
OperationCanceledException
TaskCanceledException
AggregateException
-
WriteByte
public void WriteByte(byte value) throws Throwable
-
-