public class RSACng extends RSA
.NET documentation at https://docs.microsoft.com/en-us/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.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: System.Core
|
static java.lang.String |
className
Qualified class name: System.Security.Cryptography.RSACng
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
RSACng() |
RSACng(CngKey key) |
RSACng(int keySize) |
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) |
byte[] |
Decrypt(JCORefOut dupParam0,
RSAEncryptionPadding dupParam1) |
byte[] |
DecryptValue(byte[] rgb) |
byte[] |
DecryptValue(JCORefOut dupParam0) |
byte[] |
Encrypt(byte[] data,
RSAEncryptionPadding padding) |
byte[] |
Encrypt(JCORefOut dupParam0,
RSAEncryptionPadding dupParam1) |
byte[] |
EncryptValue(byte[] rgb) |
byte[] |
EncryptValue(JCORefOut dupParam0) |
RSAParameters |
ExportParameters(boolean includePrivateParameters) |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
CngKey |
getKey() |
void |
ImportParameters(RSAParameters parameters) |
void |
setJCOInstance(JCObject instance) |
void |
setKey(CngKey Key) |
byte[] |
SignHash(byte[] hash,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding) |
byte[] |
SignHash(JCORefOut dupParam0,
HashAlgorithmName dupParam1,
RSASignaturePadding dupParam2) |
boolean |
VerifyHash(byte[] hash,
byte[] signature,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding) |
boolean |
VerifyHash(JCORefOut dupParam0,
JCORefOut dupParam1,
HashAlgorithmName dupParam2,
RSASignaturePadding dupParam3) |
Create, Create, CreateNewRSA, CreateNewRSA, FromXmlString, SignData, SignData, SignData, SignData, SignData, ToXmlString, VerifyData, VerifyData, VerifyData, VerifyData, VerifyData, VerifyDataClear, close, Create, Create, Dispose, 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,
CryptographicException
java.lang.ThrowableCryptographicExceptionpublic RSACng(CngKey key) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, CryptographicException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, FormatException, NullReferenceException, MissingMethodException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionCryptographicExceptionArgumentExceptionNotImplementedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionFormatExceptionNullReferenceExceptionMissingMethodExceptionpublic RSACng(int keySize)
throws java.lang.Throwable,
CryptographicException
java.lang.ThrowableCryptographicExceptionpublic RSACng(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic 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,
ArgumentNullException,
CryptographicException,
ArgumentOutOfRangeException,
ArgumentException,
NullReferenceException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException,
NotSupportedException,
PlatformNotSupportedException,
RankException,
MissingMethodException,
TargetInvocationException
Decrypt in class RSAjava.lang.ThrowableArgumentNullExceptionCryptographicExceptionArgumentOutOfRangeExceptionArgumentExceptionNullReferenceExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionNotSupportedExceptionPlatformNotSupportedExceptionRankExceptionMissingMethodExceptionTargetInvocationExceptionpublic byte[] Decrypt(JCORefOut dupParam0, RSAEncryptionPadding dupParam1) throws java.lang.Throwable, ArgumentNullException, CryptographicException, ArgumentOutOfRangeException, ArgumentException, NullReferenceException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, NotSupportedException, PlatformNotSupportedException, RankException, MissingMethodException, TargetInvocationException
Decrypt in class RSAjava.lang.ThrowableArgumentNullExceptionCryptographicExceptionArgumentOutOfRangeExceptionArgumentExceptionNullReferenceExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionNotSupportedExceptionPlatformNotSupportedExceptionRankExceptionMissingMethodExceptionTargetInvocationExceptionpublic byte[] DecryptValue(byte[] rgb)
throws java.lang.Throwable,
NotSupportedException
DecryptValue in class RSAjava.lang.ThrowableNotSupportedExceptionpublic byte[] DecryptValue(JCORefOut dupParam0) throws java.lang.Throwable, NotSupportedException
DecryptValue in class RSAjava.lang.ThrowableNotSupportedExceptionpublic byte[] Encrypt(byte[] data,
RSAEncryptionPadding padding)
throws java.lang.Throwable,
ArgumentNullException,
CryptographicException,
ArgumentOutOfRangeException,
ArgumentException,
NullReferenceException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException,
NotSupportedException,
PlatformNotSupportedException,
RankException,
MissingMethodException,
TargetInvocationException
Encrypt in class RSAjava.lang.ThrowableArgumentNullExceptionCryptographicExceptionArgumentOutOfRangeExceptionArgumentExceptionNullReferenceExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionNotSupportedExceptionPlatformNotSupportedExceptionRankExceptionMissingMethodExceptionTargetInvocationExceptionpublic byte[] Encrypt(JCORefOut dupParam0, RSAEncryptionPadding dupParam1) throws java.lang.Throwable, ArgumentNullException, CryptographicException, ArgumentOutOfRangeException, ArgumentException, NullReferenceException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, NotSupportedException, PlatformNotSupportedException, RankException, MissingMethodException, TargetInvocationException
Encrypt in class RSAjava.lang.ThrowableArgumentNullExceptionCryptographicExceptionArgumentOutOfRangeExceptionArgumentExceptionNullReferenceExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionNotSupportedExceptionPlatformNotSupportedExceptionRankExceptionMissingMethodExceptionTargetInvocationExceptionpublic byte[] EncryptValue(byte[] rgb)
throws java.lang.Throwable,
NotSupportedException
EncryptValue in class RSAjava.lang.ThrowableNotSupportedExceptionpublic byte[] EncryptValue(JCORefOut dupParam0) throws java.lang.Throwable, NotSupportedException
EncryptValue in class RSAjava.lang.ThrowableNotSupportedExceptionpublic RSAParameters ExportParameters(boolean includePrivateParameters) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, CryptographicException, ArgumentException, NullReferenceException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, NotSupportedException, PlatformNotSupportedException, RankException
ExportParameters in class RSAjava.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionCryptographicExceptionArgumentExceptionNullReferenceExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionNotSupportedExceptionPlatformNotSupportedExceptionRankExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class RSAString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class RSAString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class RSAObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class RSAString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class RSAJCType representing the CLR Type of the instantiated Classpublic CngKey getKey() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, CryptographicException, ArgumentException, NullReferenceException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, FormatException, NotSupportedException, PlatformNotSupportedException, RankException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionCryptographicExceptionArgumentExceptionNullReferenceExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionFormatExceptionNotSupportedExceptionPlatformNotSupportedExceptionRankExceptionpublic void ImportParameters(RSAParameters parameters) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, NullReferenceException, FormatException, PlatformNotSupportedException, CryptographicException, OutOfMemoryException
ImportParameters in class RSAjava.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionNullReferenceExceptionFormatExceptionPlatformNotSupportedExceptionCryptographicExceptionOutOfMemoryExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class RSApublic void setKey(CngKey Key) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, CryptographicException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, FormatException, NullReferenceException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionCryptographicExceptionArgumentExceptionNotImplementedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionFormatExceptionNullReferenceExceptionpublic byte[] SignHash(byte[] hash,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
CryptographicException,
NullReferenceException,
FormatException,
PlatformNotSupportedException,
RankException
SignHash in class RSAjava.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionCryptographicExceptionNullReferenceExceptionFormatExceptionPlatformNotSupportedExceptionRankExceptionpublic byte[] SignHash(JCORefOut dupParam0, HashAlgorithmName dupParam1, RSASignaturePadding dupParam2) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, CryptographicException, NullReferenceException, FormatException, PlatformNotSupportedException, RankException
SignHash in class RSAjava.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionCryptographicExceptionNullReferenceExceptionFormatExceptionPlatformNotSupportedExceptionRankExceptionpublic boolean VerifyHash(byte[] hash,
byte[] signature,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
CryptographicException,
NullReferenceException,
FormatException,
PlatformNotSupportedException,
RankException
VerifyHash in class RSAjava.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionCryptographicExceptionNullReferenceExceptionFormatExceptionPlatformNotSupportedExceptionRankExceptionpublic boolean VerifyHash(JCORefOut dupParam0, JCORefOut dupParam1, HashAlgorithmName dupParam2, RSASignaturePadding dupParam3) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, CryptographicException, NullReferenceException, FormatException, PlatformNotSupportedException, RankException
VerifyHash in class RSAjava.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionCryptographicExceptionNullReferenceExceptionFormatExceptionPlatformNotSupportedExceptionRankException