public class RSACng extends RSA
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Security.Cryptography.RSACng
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.RSACng
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
RSACng()
Initializes a new instance by invoking the .NET constructor.
|
RSACng(CngKey key)
Initializes a new instance by invoking the .NET constructor.
|
RSACng(int keySize)
Initializes a new instance by invoking the .NET constructor.
|
RSACng(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static RSACng |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into RSACng, a cast assert is made to check if types are compatible. |
byte[] |
Decrypt(byte[] data,
RSAEncryptionPadding padding)
Invokes the .NET member Decrypt.
|
byte[] |
Decrypt(JCORefOut dupParam0,
RSAEncryptionPadding dupParam1)
Invokes the .NET member Decrypt.
|
byte[] |
Encrypt(byte[] data,
RSAEncryptionPadding padding)
Invokes the .NET member Encrypt.
|
byte[] |
Encrypt(JCORefOut dupParam0,
RSAEncryptionPadding dupParam1)
Invokes the .NET member Encrypt.
|
RSAParameters |
ExportParameters(boolean includePrivateParameters)
Invokes the .NET member ExportParameters.
|
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. |
CngKey |
getKey()
Gets the value of the .NET property Key.
|
void |
ImportParameters(RSAParameters parameters)
Invokes the .NET member ImportParameters.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setKey(CngKey Key)
Sets the value of the .NET property Key.
|
byte[] |
SignHash(byte[] hash,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding)
Invokes the .NET member SignHash.
|
byte[] |
SignHash(JCORefOut dupParam0,
HashAlgorithmName dupParam1,
RSASignaturePadding dupParam2)
Invokes the .NET member SignHash.
|
boolean |
VerifyHash(byte[] hash,
byte[] signature,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding)
Invokes the .NET member VerifyHash.
|
boolean |
VerifyHash(JCORefOut dupParam0,
JCORefOut dupParam1,
HashAlgorithmName dupParam2,
RSASignaturePadding dupParam3)
Invokes the .NET member VerifyHash.
|
Create, Create, CreateNewRSA, CreateNewRSA, DecryptValue, DecryptValue, EncryptValue, EncryptValue, ExportRSAPrivateKey, ExportRSAPrivateKeyPem, ExportRSAPublicKey, ExportRSAPublicKeyPem, FromXmlString, GetMaxOutputSize, SignData, SignData, SignData, SignData, SignData, ToXmlString, VerifyData, VerifyData, VerifyData, VerifyData, VerifyData, VerifyDataClear, close, Create, Create, Dispose, ExportPkcs8PrivateKey, ExportPkcs8PrivateKeyPem, ExportSubjectPublicKeyInfo, ExportSubjectPublicKeyInfoPem, getKeyExchangeAlgorithm, getKeySize, getLegalKeySizes, getSignatureAlgorithm, setKeySizepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public RSACng()
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
CultureNotFoundException,
CryptographicException
java.lang.Throwable - if the .NET constructor failsPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic RSACng(CngKey key) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException
key - the argument of type CngKeyjava.lang.Throwable - if the .NET constructor failsArgumentException - 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 itCryptographicException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itpublic RSACng(int keySize)
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
CryptographicException
keySize - the argument of type intjava.lang.Throwable - if the .NET constructor failsPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic RSACng(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 RSACng cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into RSACng, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedRSACng instancejava.lang.Throwable - in case of error during cast operationpublic byte[] Decrypt(byte[] data,
RSAEncryptionPadding padding)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
CryptographicException,
IndexOutOfRangeException,
PlatformNotSupportedException,
FormatException,
ObjectDisposedException,
ArrayTypeMismatchException,
OutOfMemoryException
Decrypt in class RSAdata - the argument of type byte[]padding - the argument of type RSAEncryptionPaddingjava.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 itCryptographicException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic byte[] Decrypt(JCORefOut dupParam0, RSAEncryptionPadding dupParam1) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, CryptographicException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, ObjectDisposedException, ArrayTypeMismatchException, OutOfMemoryException
Decrypt in class RSAdupParam0 - the argument of type JCORefOutdupParam1 - the argument of type RSAEncryptionPaddingjava.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 itCryptographicException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic byte[] Encrypt(byte[] data,
RSAEncryptionPadding padding)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
CryptographicException,
IndexOutOfRangeException,
PlatformNotSupportedException,
FormatException,
ObjectDisposedException,
ArrayTypeMismatchException,
OutOfMemoryException
Encrypt in class RSAdata - the argument of type byte[]padding - the argument of type RSAEncryptionPaddingjava.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 itCryptographicException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic byte[] Encrypt(JCORefOut dupParam0, RSAEncryptionPadding dupParam1) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, CryptographicException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, ObjectDisposedException, ArrayTypeMismatchException, OutOfMemoryException
Encrypt in class RSAdupParam0 - the argument of type JCORefOutdupParam1 - the argument of type RSAEncryptionPaddingjava.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 itCryptographicException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic RSAParameters ExportParameters(boolean includePrivateParameters) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, PlatformNotSupportedException, CryptographicException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException, MissingMethodException, TargetInvocationException, IndexOutOfRangeException, CultureNotFoundException
ExportParameters in class RSAincludePrivateParameters - the argument of type booleanjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itCryptographicException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class RSApublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class RSApublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class RSAnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class RSApublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class RSApublic CngKey getKey() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CryptographicException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCryptographicException - if the .NET member raises itNotSupportedException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itpublic void ImportParameters(RSAParameters parameters) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, CryptographicException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, OutOfMemoryException, ArrayTypeMismatchException
ImportParameters in class RSAparameters - the argument of type RSAParametersjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itCryptographicException - if the .NET member raises itNotSupportedException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class RSAinstance - the new underlying objectpublic void setKey(CngKey Key) throws java.lang.Throwable, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, CryptographicException, ArgumentNullException, NotSupportedException, CultureNotFoundException
Key - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCryptographicException - if the .NET member raises itArgumentNullException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itpublic byte[] SignHash(byte[] hash,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
CryptographicException,
OutOfMemoryException
SignHash in class RSAhash - the argument of type byte[]hashAlgorithm - the argument of type HashAlgorithmNamepadding - the argument of type RSASignaturePaddingjava.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 itCryptographicException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic byte[] SignHash(JCORefOut dupParam0, HashAlgorithmName dupParam1, RSASignaturePadding dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, OutOfMemoryException
SignHash in class RSAdupParam0 - the argument of type JCORefOutdupParam1 - the argument of type HashAlgorithmNamedupParam2 - the argument of type RSASignaturePaddingjava.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 itCryptographicException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic boolean VerifyHash(byte[] hash,
byte[] signature,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
NotImplementedException
VerifyHash in class RSAhash - the argument of type byte[]signature - the argument of type byte[]hashAlgorithm - the argument of type HashAlgorithmNamepadding - the argument of type RSASignaturePaddingjava.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 itNotImplementedException - if the .NET member raises itpublic boolean VerifyHash(JCORefOut dupParam0, JCORefOut dupParam1, HashAlgorithmName dupParam2, RSASignaturePadding dupParam3) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NotImplementedException
VerifyHash in class RSAdupParam0 - the argument of type JCORefOutdupParam1 - the argument of type JCORefOutdupParam2 - the argument of type HashAlgorithmNamedupParam3 - the argument of type RSASignaturePaddingjava.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 itNotImplementedException - if the .NET member raises it