Package system.security.cryptography
Class RSACryptoServiceProvider
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.security.cryptography.AsymmetricAlgorithm
-
- system.security.cryptography.RSA
-
- system.security.cryptography.RSACryptoServiceProvider
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
public class RSACryptoServiceProvider extends RSA
The base .NET class managing System.Security.Cryptography.RSACryptoServiceProvider, System.Security.Cryptography, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.Cryptography.RSACryptoServiceProvider
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Security.Cryptography, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Security.Cryptographystatic java.lang.String
className
Qualified class name: System.Security.Cryptography.RSACryptoServiceProviderstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description RSACryptoServiceProvider()
RSACryptoServiceProvider(int dwKeySize)
RSACryptoServiceProvider(int dwKeySize, CspParameters parameters)
RSACryptoServiceProvider(java.lang.Object instance)
Internal constructor.RSACryptoServiceProvider(CspParameters parameters)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RSACryptoServiceProvider
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoRSACryptoServiceProvider
, a cast assert is made to check if types are compatible.byte[]
Decrypt(byte[] rgb, boolean fOAEP)
byte[]
Decrypt(byte[] data, RSAEncryptionPadding padding)
byte[]
Decrypt(JCORefOut dupParam0, boolean dupParam1)
byte[]
Decrypt(JCORefOut dupParam0, RSAEncryptionPadding dupParam1)
byte[]
DecryptValue(byte[] rgb)
byte[]
DecryptValue(JCORefOut dupParam0)
byte[]
Encrypt(byte[] rgb, boolean fOAEP)
byte[]
Encrypt(byte[] data, RSAEncryptionPadding padding)
byte[]
Encrypt(JCORefOut dupParam0, boolean dupParam1)
byte[]
Encrypt(JCORefOut dupParam0, RSAEncryptionPadding dupParam1)
byte[]
EncryptValue(byte[] rgb)
byte[]
EncryptValue(JCORefOut dupParam0)
byte[]
ExportCspBlob(boolean includePrivateParameters)
RSAParameters
ExportParameters(boolean includePrivateParameters)
CspKeyContainerInfo
getCspKeyContainerInfo()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typeboolean
getPersistKeyInCsp()
boolean
getPublicOnly()
static boolean
getUseMachineKeyStore()
void
ImportCspBlob(byte[] keyBlob)
void
ImportCspBlob(JCORefOut dupParam0)
void
ImportParameters(RSAParameters parameters)
void
setJCOInstance(JCObject instance)
void
setPersistKeyInCsp(boolean PersistKeyInCsp)
static void
setUseMachineKeyStore(boolean UseMachineKeyStore)
byte[]
SignData(byte[] buffer, int offset, int count, NetObject halg)
byte[]
SignData(byte[] buffer, NetObject halg)
byte[]
SignData(JCORefOut dupParam0, int dupParam1, int dupParam2, NetObject dupParam3)
byte[]
SignData(JCORefOut dupParam0, NetObject dupParam1)
byte[]
SignData(Stream inputStream, NetObject halg)
byte[]
SignHash(byte[] rgbHash, java.lang.String str)
byte[]
SignHash(byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
byte[]
SignHash(JCORefOut dupParam0, java.lang.String dupParam1)
byte[]
SignHash(JCORefOut dupParam0, HashAlgorithmName dupParam1, RSASignaturePadding dupParam2)
boolean
VerifyData(byte[] buffer, NetObject halg, byte[] signature)
boolean
VerifyData(JCORefOut dupParam0, NetObject dupParam1, JCORefOut dupParam2)
boolean
VerifyHash(byte[] hash, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
boolean
VerifyHash(byte[] rgbHash, java.lang.String str, byte[] rgbSignature)
boolean
VerifyHash(JCORefOut dupParam0, java.lang.String dupParam1, JCORefOut dupParam2)
boolean
VerifyHash(JCORefOut dupParam0, JCORefOut dupParam1, HashAlgorithmName dupParam2, RSASignaturePadding dupParam3)
-
Methods inherited from class system.security.cryptography.RSA
Create, Create, CreateNewRSA, CreateNewRSA, ExportRSAPrivateKey, ExportRSAPrivateKeyPem, ExportRSAPublicKey, ExportRSAPublicKeyPem, FromXmlString, GetMaxOutputSize, SignData, SignData, SignData, SignData, SignData, ToXmlString, VerifyData, VerifyData, VerifyData, VerifyData, VerifyData, VerifyData
-
Methods inherited from class system.security.cryptography.AsymmetricAlgorithm
Clear, close, Create, Create, Dispose, ExportPkcs8PrivateKey, ExportPkcs8PrivateKeyPem, ExportSubjectPublicKeyInfo, ExportSubjectPublicKeyInfoPem, getKeyExchangeAlgorithm, getKeySize, getLegalKeySizes, getSignatureAlgorithm, setKeySize
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Security.Cryptography, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Security.Cryptography- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Security.Cryptography.RSACryptoServiceProvider- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RSACryptoServiceProvider
public RSACryptoServiceProvider(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
RSACryptoServiceProvider
public RSACryptoServiceProvider() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, CryptographicException, ArrayTypeMismatchException, InvalidOperationException, NotSupportedException, ObjectDisposedException, OutOfMemoryException, IndexOutOfRangeException, MissingMethodException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
CryptographicException
ArrayTypeMismatchException
InvalidOperationException
NotSupportedException
ObjectDisposedException
OutOfMemoryException
IndexOutOfRangeException
MissingMethodException
TargetInvocationException
-
RSACryptoServiceProvider
public RSACryptoServiceProvider(int dwKeySize, CspParameters parameters) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, CryptographicException, OutOfMemoryException, MissingMethodException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
IndexOutOfRangeException
FormatException
CryptographicException
OutOfMemoryException
MissingMethodException
TargetInvocationException
-
RSACryptoServiceProvider
public RSACryptoServiceProvider(int dwKeySize) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, CryptographicException, ArrayTypeMismatchException, InvalidOperationException, NotSupportedException, ObjectDisposedException, OutOfMemoryException, IndexOutOfRangeException, MissingMethodException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
CryptographicException
ArrayTypeMismatchException
InvalidOperationException
NotSupportedException
ObjectDisposedException
OutOfMemoryException
IndexOutOfRangeException
MissingMethodException
TargetInvocationException
-
RSACryptoServiceProvider
public RSACryptoServiceProvider(CspParameters parameters) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, CryptographicException, OutOfMemoryException, MissingMethodException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
IndexOutOfRangeException
FormatException
CryptographicException
OutOfMemoryException
MissingMethodException
TargetInvocationException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classRSA
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classRSA
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classRSA
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classRSA
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classRSA
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classRSA
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static RSACryptoServiceProvider cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoRSACryptoServiceProvider
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
RSACryptoServiceProvider
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
VerifyData
public boolean VerifyData(byte[] buffer, NetObject halg, byte[] signature) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, CryptographicException, NullReferenceException, ExternalException, CultureNotFoundException, MissingMethodException, TargetInvocationException, FormatException, ArrayTypeMismatchException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
CryptographicException
NullReferenceException
ExternalException
CultureNotFoundException
MissingMethodException
TargetInvocationException
FormatException
ArrayTypeMismatchException
-
VerifyData
public boolean VerifyData(JCORefOut dupParam0, NetObject dupParam1, JCORefOut dupParam2) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, CryptographicException, NullReferenceException, ExternalException, CultureNotFoundException, MissingMethodException, TargetInvocationException, FormatException, ArrayTypeMismatchException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
CryptographicException
NullReferenceException
ExternalException
CultureNotFoundException
MissingMethodException
TargetInvocationException
FormatException
ArrayTypeMismatchException
-
VerifyHash
public boolean VerifyHash(byte[] hash, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, MissingMethodException, TargetInvocationException
- Overrides:
VerifyHash
in classRSA
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
CryptographicException
CultureNotFoundException
OutOfMemoryException
IndexOutOfRangeException
MissingMethodException
TargetInvocationException
-
VerifyHash
public boolean VerifyHash(JCORefOut dupParam0, JCORefOut dupParam1, HashAlgorithmName dupParam2, RSASignaturePadding dupParam3) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, MissingMethodException, TargetInvocationException
- Overrides:
VerifyHash
in classRSA
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
CryptographicException
CultureNotFoundException
OutOfMemoryException
IndexOutOfRangeException
MissingMethodException
TargetInvocationException
-
VerifyHash
public boolean VerifyHash(byte[] rgbHash, java.lang.String str, byte[] rgbSignature) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OutOfMemoryException, CryptographicException, CultureNotFoundException, NullReferenceException, ExternalException, MissingMethodException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
OutOfMemoryException
CryptographicException
CultureNotFoundException
NullReferenceException
ExternalException
MissingMethodException
TargetInvocationException
-
VerifyHash
public boolean VerifyHash(JCORefOut dupParam0, java.lang.String dupParam1, JCORefOut dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OutOfMemoryException, CryptographicException, CultureNotFoundException, NullReferenceException, ExternalException, MissingMethodException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
OutOfMemoryException
CryptographicException
CultureNotFoundException
NullReferenceException
ExternalException
MissingMethodException
TargetInvocationException
-
Decrypt
public byte[] Decrypt(byte[] rgb, boolean fOAEP) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, MissingMethodException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
CryptographicException
CultureNotFoundException
OutOfMemoryException
IndexOutOfRangeException
MissingMethodException
TargetInvocationException
-
Decrypt
public byte[] Decrypt(JCORefOut dupParam0, boolean dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, MissingMethodException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
CryptographicException
CultureNotFoundException
OutOfMemoryException
IndexOutOfRangeException
MissingMethodException
TargetInvocationException
-
Decrypt
public byte[] Decrypt(byte[] data, RSAEncryptionPadding padding) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, OutOfMemoryException, IndexOutOfRangeException, MissingMethodException, TargetInvocationException
- Overrides:
Decrypt
in classRSA
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
CryptographicException
OutOfMemoryException
IndexOutOfRangeException
MissingMethodException
TargetInvocationException
-
Decrypt
public byte[] Decrypt(JCORefOut dupParam0, RSAEncryptionPadding dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, OutOfMemoryException, IndexOutOfRangeException, MissingMethodException, TargetInvocationException
- Overrides:
Decrypt
in classRSA
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
CryptographicException
OutOfMemoryException
IndexOutOfRangeException
MissingMethodException
TargetInvocationException
-
DecryptValue
public byte[] DecryptValue(byte[] rgb) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
- Overrides:
DecryptValue
in classRSA
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
InvalidOperationException
ObjectDisposedException
-
DecryptValue
public byte[] DecryptValue(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
- Overrides:
DecryptValue
in classRSA
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
InvalidOperationException
ObjectDisposedException
-
Encrypt
public byte[] Encrypt(byte[] rgb, boolean fOAEP) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, IndexOutOfRangeException, FormatException, CultureNotFoundException, OutOfMemoryException, MissingMethodException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
CryptographicException
IndexOutOfRangeException
FormatException
CultureNotFoundException
OutOfMemoryException
MissingMethodException
TargetInvocationException
-
Encrypt
public byte[] Encrypt(JCORefOut dupParam0, boolean dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, IndexOutOfRangeException, FormatException, CultureNotFoundException, OutOfMemoryException, MissingMethodException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
CryptographicException
IndexOutOfRangeException
FormatException
CultureNotFoundException
OutOfMemoryException
MissingMethodException
TargetInvocationException
-
Encrypt
public byte[] Encrypt(byte[] data, RSAEncryptionPadding padding) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, IndexOutOfRangeException, FormatException, OutOfMemoryException, MissingMethodException, TargetInvocationException
- Overrides:
Encrypt
in classRSA
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
CryptographicException
IndexOutOfRangeException
FormatException
OutOfMemoryException
MissingMethodException
TargetInvocationException
-
Encrypt
public byte[] Encrypt(JCORefOut dupParam0, RSAEncryptionPadding dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, IndexOutOfRangeException, FormatException, OutOfMemoryException, MissingMethodException, TargetInvocationException
- Overrides:
Encrypt
in classRSA
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
CryptographicException
IndexOutOfRangeException
FormatException
OutOfMemoryException
MissingMethodException
TargetInvocationException
-
EncryptValue
public byte[] EncryptValue(byte[] rgb) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
- Overrides:
EncryptValue
in classRSA
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
InvalidOperationException
ObjectDisposedException
-
EncryptValue
public byte[] EncryptValue(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
- Overrides:
EncryptValue
in classRSA
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
InvalidOperationException
ObjectDisposedException
-
ExportCspBlob
public byte[] ExportCspBlob(boolean includePrivateParameters) throws java.lang.Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CryptographicException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, MissingMethodException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
CryptographicException
CultureNotFoundException
OutOfMemoryException
IndexOutOfRangeException
MissingMethodException
TargetInvocationException
-
SignData
public byte[] SignData(byte[] buffer, int offset, int count, NetObject halg) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, CryptographicException, NullReferenceException, ExternalException, CultureNotFoundException, MissingMethodException, TargetInvocationException, FormatException, ArrayTypeMismatchException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
CryptographicException
NullReferenceException
ExternalException
CultureNotFoundException
MissingMethodException
TargetInvocationException
FormatException
ArrayTypeMismatchException
-
SignData
public byte[] SignData(JCORefOut dupParam0, int dupParam1, int dupParam2, NetObject dupParam3) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, CryptographicException, NullReferenceException, ExternalException, CultureNotFoundException, MissingMethodException, TargetInvocationException, FormatException, ArrayTypeMismatchException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
CryptographicException
NullReferenceException
ExternalException
CultureNotFoundException
MissingMethodException
TargetInvocationException
FormatException
ArrayTypeMismatchException
-
SignData
public byte[] SignData(byte[] buffer, NetObject halg) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, CryptographicException, NullReferenceException, ExternalException, CultureNotFoundException, MissingMethodException, TargetInvocationException, FormatException, ArrayTypeMismatchException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
CryptographicException
NullReferenceException
ExternalException
CultureNotFoundException
MissingMethodException
TargetInvocationException
FormatException
ArrayTypeMismatchException
-
SignData
public byte[] SignData(JCORefOut dupParam0, NetObject dupParam1) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, CryptographicException, NullReferenceException, ExternalException, CultureNotFoundException, MissingMethodException, TargetInvocationException, FormatException, ArrayTypeMismatchException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
CryptographicException
NullReferenceException
ExternalException
CultureNotFoundException
MissingMethodException
TargetInvocationException
FormatException
ArrayTypeMismatchException
-
SignData
public byte[] SignData(Stream inputStream, NetObject halg) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, CryptographicException, NullReferenceException, ExternalException, CultureNotFoundException, MissingMethodException, TargetInvocationException, FormatException, ArrayTypeMismatchException, IOException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
CryptographicException
NullReferenceException
ExternalException
CultureNotFoundException
MissingMethodException
TargetInvocationException
FormatException
ArrayTypeMismatchException
IOException
-
SignHash
public byte[] SignHash(byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, OutOfMemoryException, IndexOutOfRangeException, MissingMethodException, TargetInvocationException
- Overrides:
SignHash
in classRSA
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
CryptographicException
OutOfMemoryException
IndexOutOfRangeException
MissingMethodException
TargetInvocationException
-
SignHash
public byte[] SignHash(JCORefOut dupParam0, HashAlgorithmName dupParam1, RSASignaturePadding dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, OutOfMemoryException, IndexOutOfRangeException, MissingMethodException, TargetInvocationException
- Overrides:
SignHash
in classRSA
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
CryptographicException
OutOfMemoryException
IndexOutOfRangeException
MissingMethodException
TargetInvocationException
-
SignHash
public byte[] SignHash(byte[] rgbHash, java.lang.String str) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, OutOfMemoryException, IndexOutOfRangeException, MissingMethodException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
CryptographicException
OutOfMemoryException
IndexOutOfRangeException
MissingMethodException
TargetInvocationException
-
SignHash
public byte[] SignHash(JCORefOut dupParam0, java.lang.String dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, OutOfMemoryException, IndexOutOfRangeException, MissingMethodException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
CryptographicException
OutOfMemoryException
IndexOutOfRangeException
MissingMethodException
TargetInvocationException
-
ExportParameters
public RSAParameters ExportParameters(boolean includePrivateParameters) throws java.lang.Throwable, NotSupportedException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, CryptographicException, ArrayTypeMismatchException, ObjectDisposedException, ArgumentNullException, OutOfMemoryException, MissingMethodException, TargetInvocationException, IOException
- Overrides:
ExportParameters
in classRSA
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
InvalidOperationException
ArgumentOutOfRangeException
PlatformNotSupportedException
CryptographicException
ArrayTypeMismatchException
ObjectDisposedException
ArgumentNullException
OutOfMemoryException
MissingMethodException
TargetInvocationException
IOException
-
ImportCspBlob
public void ImportCspBlob(byte[] keyBlob) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CryptographicException, CultureNotFoundException, OutOfMemoryException
-
ImportCspBlob
public void ImportCspBlob(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CryptographicException, CultureNotFoundException, OutOfMemoryException
-
ImportParameters
public void ImportParameters(RSAParameters parameters) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidOperationException, FormatException, CryptographicException, ArgumentNullException, NotSupportedException, ObjectDisposedException, CultureNotFoundException, MissingMethodException, TargetInvocationException, OutOfMemoryException
- Overrides:
ImportParameters
in classRSA
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
IndexOutOfRangeException
ArrayTypeMismatchException
InvalidOperationException
FormatException
CryptographicException
ArgumentNullException
NotSupportedException
ObjectDisposedException
CultureNotFoundException
MissingMethodException
TargetInvocationException
OutOfMemoryException
-
getPersistKeyInCsp
public boolean getPersistKeyInCsp() throws java.lang.Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CryptographicException, CultureNotFoundException, OutOfMemoryException
-
setPersistKeyInCsp
public void setPersistKeyInCsp(boolean PersistKeyInCsp) throws java.lang.Throwable, NotSupportedException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, CryptographicException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException, ArgumentNullException, OutOfMemoryException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
InvalidOperationException
ArgumentOutOfRangeException
PlatformNotSupportedException
IndexOutOfRangeException
FormatException
CryptographicException
ArrayTypeMismatchException
CultureNotFoundException
ObjectDisposedException
ArgumentNullException
OutOfMemoryException
-
getPublicOnly
public boolean getPublicOnly() throws java.lang.Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CryptographicException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, MissingMethodException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
CryptographicException
CultureNotFoundException
OutOfMemoryException
IndexOutOfRangeException
MissingMethodException
TargetInvocationException
-
getUseMachineKeyStore
public static boolean getUseMachineKeyStore() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setUseMachineKeyStore
public static void setUseMachineKeyStore(boolean UseMachineKeyStore) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCspKeyContainerInfo
public CspKeyContainerInfo getCspKeyContainerInfo() throws java.lang.Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CryptographicException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, MissingMethodException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
CryptographicException
CultureNotFoundException
OutOfMemoryException
IndexOutOfRangeException
MissingMethodException
TargetInvocationException
-
-