public class RSA extends AsymmetricAlgorithm
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.Cryptography.RSA
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.RSA
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
RSA() |
RSA(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static RSA |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into RSA, a cast assert is made to check if types are compatible. |
static RSA |
Create(int keySizeInBits) |
static RSA |
Create(RSAParameters parameters) |
static RSA |
CreateNewRSA() |
static RSA |
CreateNewRSA(java.lang.String algName) |
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) |
byte[] |
ExportRSAPrivateKey() |
java.lang.String |
ExportRSAPrivateKeyPem() |
byte[] |
ExportRSAPublicKey() |
java.lang.String |
ExportRSAPublicKeyPem() |
void |
FromXmlString(java.lang.String xmlString) |
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
|
int |
GetMaxOutputSize() |
void |
ImportParameters(RSAParameters parameters) |
void |
setJCOInstance(JCObject instance) |
byte[] |
SignData(byte[] data,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding) |
byte[] |
SignData(byte[] data,
int offset,
int count,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding) |
byte[] |
SignData(JCORefOut dupParam0,
HashAlgorithmName dupParam1,
RSASignaturePadding dupParam2) |
byte[] |
SignData(JCORefOut dupParam0,
int dupParam1,
int dupParam2,
HashAlgorithmName dupParam3,
RSASignaturePadding dupParam4) |
byte[] |
SignData(Stream data,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding) |
byte[] |
SignHash(byte[] hash,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding) |
byte[] |
SignHash(JCORefOut dupParam0,
HashAlgorithmName dupParam1,
RSASignaturePadding dupParam2) |
java.lang.String |
ToXmlString(boolean includePrivateParameters) |
boolean |
VerifyData(byte[] data,
byte[] signature,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding) |
boolean |
VerifyData(byte[] data,
int offset,
int count,
byte[] signature,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding) |
boolean |
VerifyData(JCORefOut dupParam0,
int dupParam1,
int dupParam2,
JCORefOut dupParam3,
HashAlgorithmName dupParam4,
RSASignaturePadding dupParam5) |
boolean |
VerifyData(JCORefOut dupParam0,
JCORefOut dupParam1,
HashAlgorithmName dupParam2,
RSASignaturePadding dupParam3) |
boolean |
VerifyData(Stream data,
byte[] signature,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding) |
boolean |
VerifyData(Stream dupParam0,
JCORefOut dupParam1,
HashAlgorithmName dupParam2,
RSASignaturePadding dupParam3) |
boolean |
VerifyHash(byte[] hash,
byte[] signature,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding) |
boolean |
VerifyHash(JCORefOut dupParam0,
JCORefOut dupParam1,
HashAlgorithmName dupParam2,
RSASignaturePadding dupParam3) |
Clear, 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 RSA()
throws java.lang.Throwable
java.lang.Throwablepublic RSA(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static RSA cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into RSA, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedRSA instancejava.lang.Throwable - in case of error during cast operationpublic static RSA Create(int keySizeInBits) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, CryptographicException
public static RSA Create(RSAParameters parameters) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic static RSA CreateNewRSA() throws java.lang.Throwable
java.lang.Throwablepublic static RSA CreateNewRSA(java.lang.String algName) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, RankException, ArrayTypeMismatchException, TypeLoadException, CryptographicException
public byte[] Decrypt(byte[] data,
RSAEncryptionPadding padding)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
NotImplementedException
public byte[] Decrypt(JCORefOut dupParam0, RSAEncryptionPadding dupParam1) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotImplementedException
public byte[] DecryptValue(byte[] rgb)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
NotSupportedException
public byte[] DecryptValue(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException
public byte[] Encrypt(byte[] data,
RSAEncryptionPadding padding)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
NotImplementedException
public byte[] Encrypt(JCORefOut dupParam0, RSAEncryptionPadding dupParam1) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotImplementedException
public byte[] EncryptValue(byte[] rgb)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
NotSupportedException
public byte[] EncryptValue(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException
public RSAParameters ExportParameters(boolean includePrivateParameters) throws java.lang.Throwable
java.lang.Throwablepublic byte[] ExportRSAPrivateKey()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
CryptographicException,
InvalidOperationException,
OverflowException,
IndexOutOfRangeException,
AsnContentException
public java.lang.String ExportRSAPrivateKeyPem()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ObjectDisposedException,
InvalidOperationException,
CryptographicException,
ArgumentOutOfRangeException,
OverflowException,
ArrayTypeMismatchException,
OutOfMemoryException,
NotSupportedException
public byte[] ExportRSAPublicKey()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
CryptographicException,
InvalidOperationException,
OverflowException,
IndexOutOfRangeException,
AsnContentException
public java.lang.String ExportRSAPublicKeyPem()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ObjectDisposedException,
InvalidOperationException,
CryptographicException,
ArgumentOutOfRangeException,
OverflowException,
ArrayTypeMismatchException,
OutOfMemoryException,
NotSupportedException
public void FromXmlString(java.lang.String xmlString)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
CryptographicException,
FormatException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
IndexOutOfRangeException
FromXmlString in class AsymmetricAlgorithmjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionCryptographicExceptionFormatExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class AsymmetricAlgorithmString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class AsymmetricAlgorithmString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class AsymmetricAlgorithmObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class AsymmetricAlgorithmString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class AsymmetricAlgorithmJCType representing the CLR Type of the instantiated Classpublic int GetMaxOutputSize()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
CryptographicException
public void ImportParameters(RSAParameters parameters) throws java.lang.Throwable
java.lang.Throwablepublic void setJCOInstance(JCObject instance)
setJCOInstance in class AsymmetricAlgorithmpublic byte[] SignData(byte[] data,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException,
FormatException,
CryptographicException,
NotImplementedException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionFormatExceptionCryptographicExceptionNotImplementedExceptionpublic byte[] SignData(byte[] data,
int offset,
int count,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException,
FormatException,
CryptographicException,
NotImplementedException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionFormatExceptionCryptographicExceptionNotImplementedExceptionpublic byte[] SignData(JCORefOut dupParam0, HashAlgorithmName dupParam1, RSASignaturePadding dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, CryptographicException, NotImplementedException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionFormatExceptionCryptographicExceptionNotImplementedExceptionpublic byte[] SignData(JCORefOut dupParam0, int dupParam1, int dupParam2, HashAlgorithmName dupParam3, RSASignaturePadding dupParam4) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, CryptographicException, NotImplementedException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionFormatExceptionCryptographicExceptionNotImplementedExceptionpublic byte[] SignData(Stream data, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, CryptographicException, IOException, NotImplementedException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionCryptographicExceptionIOExceptionNotImplementedExceptionpublic byte[] SignHash(byte[] hash,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
NotImplementedException
public byte[] SignHash(JCORefOut dupParam0, HashAlgorithmName dupParam1, RSASignaturePadding dupParam2) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotImplementedException
public java.lang.String ToXmlString(boolean includePrivateParameters)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
OutOfMemoryException,
CryptographicException
ToXmlString in class AsymmetricAlgorithmjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionCryptographicExceptionpublic boolean VerifyData(byte[] data,
byte[] signature,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException,
FormatException,
CryptographicException,
NotImplementedException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionFormatExceptionCryptographicExceptionNotImplementedExceptionpublic boolean VerifyData(byte[] data,
int offset,
int count,
byte[] signature,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException,
FormatException,
CryptographicException,
NotImplementedException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionFormatExceptionCryptographicExceptionNotImplementedExceptionpublic boolean VerifyData(JCORefOut dupParam0, int dupParam1, int dupParam2, JCORefOut dupParam3, HashAlgorithmName dupParam4, RSASignaturePadding dupParam5) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, CryptographicException, NotImplementedException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionFormatExceptionCryptographicExceptionNotImplementedExceptionpublic boolean VerifyData(JCORefOut dupParam0, JCORefOut dupParam1, HashAlgorithmName dupParam2, RSASignaturePadding dupParam3) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, CryptographicException, NotImplementedException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionFormatExceptionCryptographicExceptionNotImplementedExceptionpublic boolean VerifyData(Stream data, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, CryptographicException, IOException, NotImplementedException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionCryptographicExceptionIOExceptionNotImplementedExceptionpublic boolean VerifyData(Stream dupParam0, JCORefOut dupParam1, HashAlgorithmName dupParam2, RSASignaturePadding dupParam3) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, CryptographicException, IOException, NotImplementedException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionCryptographicExceptionIOExceptionNotImplementedExceptionpublic boolean VerifyHash(byte[] hash,
byte[] signature,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
NotImplementedException
public boolean VerifyHash(JCORefOut dupParam0, JCORefOut dupParam1, HashAlgorithmName dupParam2, RSASignaturePadding dupParam3) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotImplementedException