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: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: mscorlib
|
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) |
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
|
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, 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, ArgumentNullException, ArgumentException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, NotSupportedException, SecurityException, ApplicationException, CultureNotFoundException, TypeLoadException, ObjectDisposedException, UnauthorizedAccessException, IOException, CryptographicException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionNotSupportedExceptionSecurityExceptionApplicationExceptionCultureNotFoundExceptionTypeLoadExceptionObjectDisposedExceptionUnauthorizedAccessExceptionIOExceptionCryptographicExceptionpublic static RSA Create(RSAParameters parameters) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, NotSupportedException, SecurityException, ApplicationException, CultureNotFoundException, TypeLoadException, ObjectDisposedException, UnauthorizedAccessException, IOException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionNotSupportedExceptionSecurityExceptionApplicationExceptionCultureNotFoundExceptionTypeLoadExceptionObjectDisposedExceptionUnauthorizedAccessExceptionIOExceptionpublic static RSA CreateNewRSA() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, IndexOutOfRangeException, SecurityException, NotSupportedException, ArgumentOutOfRangeException, ApplicationException, CultureNotFoundException, TypeLoadException, ObjectDisposedException, UnauthorizedAccessException, IOException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionIndexOutOfRangeExceptionSecurityExceptionNotSupportedExceptionArgumentOutOfRangeExceptionApplicationExceptionCultureNotFoundExceptionTypeLoadExceptionObjectDisposedExceptionUnauthorizedAccessExceptionIOExceptionpublic static RSA CreateNewRSA(java.lang.String algName) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, NotSupportedException, SecurityException, ApplicationException, CultureNotFoundException, TypeLoadException, ObjectDisposedException, UnauthorizedAccessException, IOException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionNotSupportedExceptionSecurityExceptionApplicationExceptionCultureNotFoundExceptionTypeLoadExceptionObjectDisposedExceptionUnauthorizedAccessExceptionIOExceptionpublic byte[] Decrypt(byte[] data,
RSAEncryptionPadding padding)
throws java.lang.Throwable
java.lang.Throwablepublic byte[] Decrypt(JCORefOut dupParam0, RSAEncryptionPadding dupParam1) throws java.lang.Throwable
java.lang.Throwablepublic byte[] DecryptValue(byte[] rgb)
throws java.lang.Throwable,
NotSupportedException
java.lang.ThrowableNotSupportedExceptionpublic byte[] DecryptValue(JCORefOut dupParam0) throws java.lang.Throwable, NotSupportedException
java.lang.ThrowableNotSupportedExceptionpublic byte[] Encrypt(byte[] data,
RSAEncryptionPadding padding)
throws java.lang.Throwable
java.lang.Throwablepublic byte[] Encrypt(JCORefOut dupParam0, RSAEncryptionPadding dupParam1) throws java.lang.Throwable
java.lang.Throwablepublic byte[] EncryptValue(byte[] rgb)
throws java.lang.Throwable,
NotSupportedException
java.lang.ThrowableNotSupportedExceptionpublic byte[] EncryptValue(JCORefOut dupParam0) throws java.lang.Throwable, NotSupportedException
java.lang.ThrowableNotSupportedExceptionpublic RSAParameters ExportParameters(boolean includePrivateParameters) throws java.lang.Throwable
java.lang.Throwablepublic void FromXmlString(java.lang.String xmlString)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
FormatException,
XmlSyntaxException,
ArgumentOutOfRangeException,
CultureNotFoundException,
OutOfMemoryException,
NotSupportedException,
NullReferenceException,
CryptographicException
public 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 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,
ArgumentNullException,
ArgumentOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionpublic byte[] SignData(byte[] data,
int offset,
int count,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionpublic byte[] SignData(JCORefOut dupParam0, HashAlgorithmName dupParam1, RSASignaturePadding dupParam2) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionpublic byte[] SignData(JCORefOut dupParam0, int dupParam1, int dupParam2, HashAlgorithmName dupParam3, RSASignaturePadding dupParam4) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionpublic byte[] SignData(Stream data, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic byte[] SignHash(byte[] hash,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding)
throws java.lang.Throwable
java.lang.Throwablepublic byte[] SignHash(JCORefOut dupParam0, HashAlgorithmName dupParam1, RSASignaturePadding dupParam2) throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String ToXmlString(boolean includePrivateParameters)
throws java.lang.Throwable,
ArgumentNullException,
FormatException,
ArgumentOutOfRangeException,
ArgumentException,
InvalidOperationException,
OutOfMemoryException,
IndexOutOfRangeException
ToXmlString in class AsymmetricAlgorithmjava.lang.ThrowableArgumentNullExceptionFormatExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionpublic boolean VerifyData(byte[] data,
byte[] signature,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionpublic boolean VerifyData(byte[] data,
int offset,
int count,
byte[] signature,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionpublic boolean VerifyData(JCORefOut dupParam0, int dupParam1, int dupParam2, JCORefOut dupParam3, HashAlgorithmName dupParam4, RSASignaturePadding dupParam5) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionpublic boolean VerifyData(JCORefOut dupParam0, JCORefOut dupParam1, HashAlgorithmName dupParam2, RSASignaturePadding dupParam3) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionpublic boolean VerifyData(Stream data, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic boolean VerifyData(Stream dupParam0, JCORefOut dupParam1, HashAlgorithmName dupParam2, RSASignaturePadding dupParam3) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic boolean VerifyHash(byte[] hash,
byte[] signature,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding)
throws java.lang.Throwable
java.lang.Throwablepublic boolean VerifyHash(JCORefOut dupParam0, JCORefOut dupParam1, HashAlgorithmName dupParam2, RSASignaturePadding dupParam3) throws java.lang.Throwable
java.lang.Throwable