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, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..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.String
assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: mscorlibstatic java.lang.String
className
Qualified class name: System.Security.Cryptography.CryptoStreamstatic JCType
classType
The 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 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
Flush()
Task
FlushAsync(CancellationToken cancellationToken)
void
FlushFinalBlock()
boolean
getHasFlushedFinalBlock()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typeint
Read(JCORefOut buffer, int offset, int count)
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)
-
Methods inherited from class system.io.Stream
BeginRead, BeginRead, BeginWrite, BeginWrite, close, Close, CopyTo, CopyTo, CopyToAsync, CopyToAsync, CopyToAsync, Dispose, EndRead, EndWrite, FlushAsync, getCanRead, getCanSeek, getCanTimeout, getCanWrite, getLength, getPosition, getReadTimeout, getWriteTimeout, ReadByte, setPosition, setReadTimeout, setWriteTimeout, Synchronized, WriteAsync, WriteAsync, WriteByte
-
Methods inherited from class system.MarshalByRefObject
CreateObjRef, GetLifetimeService, InitializeLifetimeService
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: mscorlib- 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.Throwable
Internal 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) throws java.lang.Throwable, ArgumentException
- Throws:
java.lang.Throwable
ArgumentException
-
CryptoStream
public CryptoStream(Stream stream, ICryptoTransform transform, CryptoStreamMode mode, boolean leaveOpen) throws java.lang.Throwable, ArgumentException
- Throws:
java.lang.Throwable
ArgumentException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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:
java.lang.Throwable
- in case of error during cast operation
-
Read
public int Read(JCORefOut buffer, int offset, int count) throws java.lang.Throwable, NotSupportedException, ArgumentOutOfRangeException, ArgumentException
- Overrides:
Read
in classStream
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentOutOfRangeException
ArgumentException
-
Seek
public long Seek(long offset, SeekOrigin origin) throws java.lang.Throwable, NotSupportedException
- Overrides:
Seek
in classStream
- Throws:
java.lang.Throwable
NotSupportedException
-
FlushAsync
public Task FlushAsync(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, TaskSchedulerException, ArgumentException, NotSupportedException, IndexOutOfRangeException
- Overrides:
FlushAsync
in classStream
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
InvalidOperationException
ObjectDisposedException
TaskSchedulerException
ArgumentException
NotSupportedException
IndexOutOfRangeException
-
WriteAsync
public Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, InvalidOperationException, ObjectDisposedException, OperationCanceledException, TaskSchedulerException, SemaphoreFullException
- Overrides:
WriteAsync
in classStream
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentOutOfRangeException
ArgumentException
ArgumentNullException
InvalidOperationException
ObjectDisposedException
OperationCanceledException
TaskSchedulerException
SemaphoreFullException
-
WriteAsync
public Task WriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2, CancellationToken dupParam3) throws java.lang.Throwable, NotSupportedException, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, InvalidOperationException, ObjectDisposedException, OperationCanceledException, TaskSchedulerException, SemaphoreFullException
- Overrides:
WriteAsync
in classStream
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentOutOfRangeException
ArgumentException
ArgumentNullException
InvalidOperationException
ObjectDisposedException
OperationCanceledException
TaskSchedulerException
SemaphoreFullException
-
Clear
public void Clear() throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
Flush
public void Flush() throws java.lang.Throwable
-
FlushFinalBlock
public void FlushFinalBlock() throws java.lang.Throwable, NotSupportedException
- Throws:
java.lang.Throwable
NotSupportedException
-
SetLength
public void SetLength(long value) throws java.lang.Throwable, NotSupportedException
- Overrides:
SetLength
in classStream
- Throws:
java.lang.Throwable
NotSupportedException
-
Write
public void Write(byte[] buffer, int offset, int count) throws java.lang.Throwable, NotSupportedException, ArgumentOutOfRangeException, ArgumentException
- Overrides:
Write
in classStream
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentOutOfRangeException
ArgumentException
-
Write
public void Write(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, NotSupportedException, ArgumentOutOfRangeException, ArgumentException
- Overrides:
Write
in classStream
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentOutOfRangeException
ArgumentException
-
getHasFlushedFinalBlock
public boolean getHasFlushedFinalBlock() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-