public class KmacXof256 extends NetObject implements java.lang.AutoCloseable
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Security.Cryptography.KmacXof256
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=9.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.KmacXof256
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
KmacXof256() |
KmacXof256(byte[] key,
byte[] customizationString)
Initializes a new instance by invoking the .NET constructor.
|
KmacXof256(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AppendData(byte[] data)
Invokes the .NET member AppendData.
|
void |
AppendData(JCORefOut dupParam0)
Invokes the .NET member AppendData.
|
static KmacXof256 |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into KmacXof256, a cast assert is made to check if types are compatible. |
KmacXof256 |
Clone()
Invokes the .NET member Clone.
|
void |
close() |
void |
Dispose()
Invokes the .NET member Dispose.
|
byte[] |
GetCurrentHash(int outputLength)
Invokes the .NET member GetCurrentHash.
|
byte[] |
GetHashAndReset(int outputLength)
Invokes the .NET member GetHashAndReset.
|
static boolean |
getIsSupported()
Gets the value of the .NET property IsSupported.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
static byte[] |
HashData(byte[] key,
byte[] source,
int outputLength,
byte[] customizationString)
Invokes the .NET member HashData.
|
static byte[] |
HashData(byte[] key,
Stream source,
int outputLength,
byte[] customizationString)
Invokes the .NET member HashData.
|
static byte[] |
HashData(JCORefOut dupParam0,
JCORefOut dupParam1,
int dupParam2,
JCORefOut dupParam3)
Invokes the .NET member HashData.
|
static byte[] |
HashData(JCORefOut dupParam0,
Stream dupParam1,
int dupParam2,
JCORefOut dupParam3)
Invokes the .NET member HashData.
|
static ValueTask_1 |
HashDataAsync(byte[] key,
Stream source,
int outputLength,
byte[] customizationString,
CancellationToken cancellationToken)
Invokes the .NET member HashDataAsync.
|
static ValueTask_1 |
HashDataAsync(JCORefOut dupParam0,
Stream dupParam1,
int dupParam2,
JCORefOut dupParam3,
CancellationToken dupParam4)
Invokes the .NET member HashDataAsync.
|
static ValueTask_1 |
HashDataAsync(ReadOnlyMemory_1 key,
Stream source,
int outputLength,
ReadOnlyMemory_1 customizationString,
CancellationToken cancellationToken)
Invokes the .NET member HashDataAsync.
|
static ValueTask |
HashDataAsync(ReadOnlyMemory_1 key,
Stream source,
Memory_1 destination,
ReadOnlyMemory_1 customizationString,
CancellationToken cancellationToken)
Invokes the .NET member HashDataAsync.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public KmacXof256()
throws java.lang.Throwable
java.lang.Throwablepublic KmacXof256(byte[] key,
byte[] customizationString)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
PlatformNotSupportedException,
MissingMethodException,
TargetInvocationException
key - the argument of type byte[]customizationString - the argument of type byte[]java.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itpublic KmacXof256(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic void AppendData(byte[] data)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
ObjectDisposedException,
CryptographicException
data - the argument of type byte[]java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itObjectDisposedException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic void AppendData(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, CryptographicException
dupParam0 - the argument of type JCORefOutjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itObjectDisposedException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic static KmacXof256 cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into KmacXof256, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedKmacXof256 instancejava.lang.Throwable - in case of error during cast operationpublic KmacXof256 Clone() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, CryptographicException, MissingMethodException, TargetInvocationException, PlatformNotSupportedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itCryptographicException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Dispose()
throws java.lang.Throwable,
ObjectDisposedException,
ArgumentNullException
java.lang.Throwable - if the call fails in the bridge or in the CLRObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic byte[] GetCurrentHash(int outputLength)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
CryptographicException,
MissingMethodException,
TargetInvocationException
outputLength - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itCryptographicException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itpublic byte[] GetHashAndReset(int outputLength)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
CryptographicException
outputLength - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic static boolean getIsSupported()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic static byte[] HashData(byte[] key,
byte[] source,
int outputLength,
byte[] customizationString)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
MissingMethodException,
TargetInvocationException
key - the argument of type byte[]source - the argument of type byte[]outputLength - the argument of type intcustomizationString - the argument of type byte[]java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itpublic static byte[] HashData(byte[] key,
Stream source,
int outputLength,
byte[] customizationString)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
MissingMethodException,
TargetInvocationException,
IOException
key - the argument of type byte[]source - the argument of type StreamoutputLength - the argument of type intcustomizationString - the argument of type byte[]java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itIOException - if the .NET member raises itpublic static byte[] HashData(JCORefOut dupParam0, JCORefOut dupParam1, int dupParam2, JCORefOut dupParam3) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, MissingMethodException, TargetInvocationException
dupParam0 - the argument of type JCORefOutdupParam1 - the argument of type JCORefOutdupParam2 - the argument of type intdupParam3 - the argument of type JCORefOutjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itpublic static byte[] HashData(JCORefOut dupParam0, Stream dupParam1, int dupParam2, JCORefOut dupParam3) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, MissingMethodException, TargetInvocationException, IOException
dupParam0 - the argument of type JCORefOutdupParam1 - the argument of type StreamdupParam2 - the argument of type intdupParam3 - the argument of type JCORefOutjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itIOException - if the .NET member raises itpublic static ValueTask_1 HashDataAsync(byte[] key, Stream source, int outputLength, byte[] customizationString, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, MissingMethodException, TargetInvocationException
key - the argument of type byte[]source - the argument of type StreamoutputLength - the argument of type intcustomizationString - the argument of type byte[]cancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itpublic static ValueTask_1 HashDataAsync(JCORefOut dupParam0, Stream dupParam1, int dupParam2, JCORefOut dupParam3, CancellationToken dupParam4) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, MissingMethodException, TargetInvocationException
dupParam0 - the argument of type JCORefOutdupParam1 - the argument of type StreamdupParam2 - the argument of type intdupParam3 - the argument of type JCORefOutdupParam4 - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itpublic static ValueTask_1 HashDataAsync(ReadOnlyMemory_1 key, Stream source, int outputLength, ReadOnlyMemory_1 customizationString, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, MissingMethodException, TargetInvocationException
key - the argument of type ReadOnlyMemory_1source - the argument of type StreamoutputLength - the argument of type intcustomizationString - the argument of type ReadOnlyMemory_1cancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itpublic static ValueTask HashDataAsync(ReadOnlyMemory_1 key, Stream source, Memory_1 destination, ReadOnlyMemory_1 customizationString, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, MissingMethodException, TargetInvocationException
key - the argument of type ReadOnlyMemory_1source - the argument of type Streamdestination - the argument of type Memory_1customizationString - the argument of type ReadOnlyMemory_1cancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying object