public class AesGcm extends NetObject implements java.lang.AutoCloseable
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Security.Cryptography.AesGcm
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.AesGcm
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
AesGcm() |
AesGcm(byte[] key)
Initializes a new instance by invoking the .NET constructor.
|
AesGcm(byte[] key,
int tagSizeInBytes)
Initializes a new instance by invoking the .NET constructor.
|
AesGcm(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static AesGcm |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into AesGcm, a cast assert is made to check if types are compatible. |
void |
close() |
void |
Decrypt(byte[] nonce,
byte[] ciphertext,
byte[] tag,
byte[] plaintext,
byte[] associatedData)
Invokes the .NET member Decrypt.
|
void |
Decrypt(JCORefOut dupParam0,
JCORefOut dupParam1,
JCORefOut dupParam2,
JCORefOut dupParam3,
JCORefOut dupParam4)
Invokes the .NET member Decrypt.
|
void |
Dispose()
Invokes the .NET member Dispose.
|
void |
Encrypt(byte[] nonce,
byte[] plaintext,
byte[] ciphertext,
byte[] tag,
byte[] associatedData)
Invokes the .NET member Encrypt.
|
void |
Encrypt(JCORefOut dupParam0,
JCORefOut dupParam1,
JCORefOut dupParam2,
JCORefOut dupParam3,
JCORefOut dupParam4)
Invokes the .NET member Encrypt.
|
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 KeySizes |
getNonceByteSizes()
Gets the value of the .NET property NonceByteSizes.
|
static KeySizes |
getTagByteSizes()
Gets the value of the .NET property TagByteSizes.
|
Nullable_1 |
getTagSizeInBytes()
Gets the value of the .NET property TagSizeInBytes.
|
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 AesGcm()
throws java.lang.Throwable
java.lang.Throwablepublic AesGcm(byte[] key)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
CryptographicException,
MissingMethodException,
TargetInvocationException
key - the argument of type byte[]java.lang.Throwable - if the .NET constructor failsArgumentException - 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 itCultureNotFoundException - 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 itpublic AesGcm(byte[] key,
int tagSizeInBytes)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
CryptographicException,
MissingMethodException,
TargetInvocationException
key - the argument of type byte[]tagSizeInBytes - the argument of type intjava.lang.Throwable - if the .NET constructor failsArgumentException - 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 itCultureNotFoundException - 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 itpublic AesGcm(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 static AesGcm cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into AesGcm, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedAesGcm instancejava.lang.Throwable - in case of error during cast operationpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Decrypt(byte[] nonce,
byte[] ciphertext,
byte[] tag,
byte[] plaintext,
byte[] associatedData)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
AuthenticationTagMismatchException
nonce - the argument of type byte[]ciphertext - the argument of type byte[]tag - the argument of type byte[]plaintext - the argument of type byte[]associatedData - 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 itAuthenticationTagMismatchException - if the .NET member raises itpublic void Decrypt(JCORefOut dupParam0, JCORefOut dupParam1, JCORefOut dupParam2, JCORefOut dupParam3, JCORefOut dupParam4) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, AuthenticationTagMismatchException
dupParam0 - the argument of type JCORefOutdupParam1 - the argument of type JCORefOutdupParam2 - the argument of type JCORefOutdupParam3 - the argument of type JCORefOutdupParam4 - 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 itAuthenticationTagMismatchException - if the .NET member raises itpublic 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 void Encrypt(byte[] nonce,
byte[] plaintext,
byte[] ciphertext,
byte[] tag,
byte[] associatedData)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException
nonce - the argument of type byte[]plaintext - the argument of type byte[]ciphertext - the argument of type byte[]tag - the argument of type byte[]associatedData - 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 itpublic void Encrypt(JCORefOut dupParam0, JCORefOut dupParam1, JCORefOut dupParam2, JCORefOut dupParam3, JCORefOut dupParam4) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
dupParam0 - the argument of type JCORefOutdupParam1 - the argument of type JCORefOutdupParam2 - the argument of type JCORefOutdupParam3 - the argument of type JCORefOutdupParam4 - 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 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 KeySizes getNonceByteSizes() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static KeySizes getTagByteSizes() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Nullable_1 getTagSizeInBytes() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying object