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:
java.lang.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..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
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Security.Cryptography.Primitives, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Security.Cryptography.Primitivesstatic java.lang.StringclassNameQualified class name: System.Security.Cryptography.CryptoStreamstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IAsyncResultBeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, NetObject state)IAsyncResultBeginRead(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4)IAsyncResultBeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, NetObject state)IAsyncResultBeginWrite(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4)static CryptoStreamcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoCryptoStream, a cast assert is made to check if types are compatible.voidClear()voidCopyTo(Stream destination, int bufferSize)TaskCopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)ValueTaskDisposeAsync()intEndRead(IAsyncResult asyncResult)voidEndWrite(IAsyncResult asyncResult)voidFlush()TaskFlushAsync(CancellationToken cancellationToken)voidFlushFinalBlock()ValueTaskFlushFinalBlockAsync(CancellationToken cancellationToken)booleangetHasFlushedFinalBlock()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeintRead(byte[] buffer, int offset, int count)intRead(JCORefOut dupParam0, int dupParam1, int dupParam2)intReadByte()longSeek(long offset, SeekOrigin origin)voidsetJCOInstance(JCObject instance)voidSetLength(long value)voidWrite(byte[] buffer, int offset, int count)voidWrite(JCORefOut dupParam0, int dupParam1, int dupParam2)TaskWriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)TaskWriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2, CancellationToken dupParam3)voidWriteByte(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
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.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 java.lang.String assemblyShortName
Assembly name: System.Security.Cryptography.Primitives- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Security.Cryptography.CryptoStream- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CryptoStream
public CryptoStream(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
CryptoStream
public CryptoStream() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
CryptoStream
public CryptoStream(Stream stream, ICryptoTransform transform, CryptoStreamMode mode, boolean leaveOpen) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
CryptoStream
public CryptoStream(Stream stream, ICryptoTransform transform, CryptoStreamMode mode) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classStream- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classStream- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classStream- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classStream- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classStream
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classStream- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static CryptoStream cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoCryptoStream, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
CryptoStreaminstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
EndRead
public int EndRead(IAsyncResult asyncResult) throws java.lang.Throwable, PlatformNotSupportedException, EventSourceException, InvalidOperationException, TaskSchedulerException, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, TaskCanceledException, AggregateException
- Overrides:
EndReadin classStream- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionEventSourceExceptionInvalidOperationExceptionTaskSchedulerExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionArgumentNullExceptionTaskCanceledExceptionAggregateException
-
Read
public int Read(byte[] buffer, int offset, int count) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, EventSourceException, TaskSchedulerException, ObjectDisposedException, TaskCanceledException, AggregateException- Overrides:
Readin classStream- Throws:
java.lang.ThrowableArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionEventSourceExceptionTaskSchedulerExceptionObjectDisposedExceptionTaskCanceledExceptionAggregateException
-
Read
public int Read(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, EventSourceException, TaskSchedulerException, ObjectDisposedException, TaskCanceledException, AggregateException
- Overrides:
Readin classStream- Throws:
java.lang.ThrowableArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionEventSourceExceptionTaskSchedulerExceptionObjectDisposedExceptionTaskCanceledExceptionAggregateException
-
ReadByte
public int ReadByte() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
Seek
public long Seek(long offset, SeekOrigin origin) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException- Overrides:
Seekin classStream- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionCultureNotFoundException
-
BeginRead
public IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, NetObject state) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, PlatformNotSupportedException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, InvalidOperationException, TaskSchedulerException, ArgumentException
- Overrides:
BeginReadin classStream- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionPlatformNotSupportedExceptionObjectDisposedExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionInvalidOperationExceptionTaskSchedulerExceptionArgumentException
-
BeginRead
public IAsyncResult BeginRead(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, PlatformNotSupportedException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, InvalidOperationException, TaskSchedulerException, ArgumentException
- Overrides:
BeginReadin classStream- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionPlatformNotSupportedExceptionObjectDisposedExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionInvalidOperationExceptionTaskSchedulerExceptionArgumentException
-
BeginWrite
public IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, NetObject state) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, PlatformNotSupportedException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, InvalidOperationException, TaskSchedulerException, ArgumentException
- Overrides:
BeginWritein classStream- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionPlatformNotSupportedExceptionObjectDisposedExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionInvalidOperationExceptionTaskSchedulerExceptionArgumentException
-
BeginWrite
public IAsyncResult BeginWrite(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, PlatformNotSupportedException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, InvalidOperationException, TaskSchedulerException, ArgumentException
- Overrides:
BeginWritein classStream- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionPlatformNotSupportedExceptionObjectDisposedExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionInvalidOperationExceptionTaskSchedulerExceptionArgumentException
-
CopyToAsync
public Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
- Overrides:
CopyToAsyncin classStream- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionNotSupportedExceptionObjectDisposedExceptionRankException
-
FlushAsync
public Task FlushAsync(CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, IndexOutOfRangeException, EventSourceException, OutOfMemoryException
- Overrides:
FlushAsyncin classStream- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionEventSourceExceptionOutOfMemoryException
-
WriteAsync
public Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException
- Overrides:
WriteAsyncin classStream- Throws:
java.lang.ThrowableArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArrayTypeMismatchException
-
WriteAsync
public Task WriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2, CancellationToken dupParam3) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException
- Overrides:
WriteAsyncin classStream- Throws:
java.lang.ThrowableArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArrayTypeMismatchException
-
DisposeAsync
public ValueTask DisposeAsync() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, InvalidOperationException, IndexOutOfRangeException
- Overrides:
DisposeAsyncin classStream- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionInvalidOperationExceptionIndexOutOfRangeException
-
FlushFinalBlockAsync
public ValueTask FlushFinalBlockAsync(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException
-
Clear
public void Clear() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
CopyTo
public void CopyTo(Stream destination, int bufferSize) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
EndWrite
public void EndWrite(IAsyncResult asyncResult) throws java.lang.Throwable, PlatformNotSupportedException, EventSourceException, InvalidOperationException, TaskSchedulerException, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, TaskCanceledException, AggregateException
- Overrides:
EndWritein classStream- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionEventSourceExceptionInvalidOperationExceptionTaskSchedulerExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionArgumentNullExceptionTaskCanceledExceptionAggregateException
-
Flush
public void Flush() throws java.lang.Throwable
-
FlushFinalBlock
public void FlushFinalBlock() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException, TaskSchedulerException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, AggregateException- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionIndexOutOfRangeExceptionTaskSchedulerExceptionObjectDisposedExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateException
-
SetLength
public void SetLength(long value) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException- Overrides:
SetLengthin classStream- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionCultureNotFoundException
-
Write
public void Write(byte[] buffer, int offset, int count) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, TaskSchedulerException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, AggregateException- Overrides:
Writein classStream- Throws:
java.lang.ThrowableArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionTaskSchedulerExceptionObjectDisposedExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateException
-
Write
public void Write(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, TaskSchedulerException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, AggregateException
- Overrides:
Writein classStream- Throws:
java.lang.ThrowableArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionTaskSchedulerExceptionObjectDisposedExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateException
-
WriteByte
public void WriteByte(byte value) throws java.lang.Throwable
-
getHasFlushedFinalBlock
public boolean getHasFlushedFinalBlock() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
-