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:
AutoCloseable
,IJCOBridgeReflected
public class RSACryptoServiceProvider extends RSA
The base .NET class managing System.Security.Cryptography.RSACryptoServiceProvider, System.Security.Cryptography.Csp, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.See: https://docs.microsoft.com/en-us/dotnet/api/System.Security.Cryptography.RSACryptoServiceProvider
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: System.Security.Cryptography.Csp, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic String
assemblyShortName
Assembly name: System.Security.Cryptography.Cspstatic 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(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()
String
getJCOAssemblyName()
Returns the reflected Assembly nameString
getJCOClassName()
Returns the reflected Class nameObject
getJCOInstance()
Returns the instantiated classString
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, String str)
byte[]
SignHash(byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
byte[]
SignHash(JCORefOut dupParam0, 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, String str, byte[] rgbSignature)
boolean
VerifyHash(JCORefOut dupParam0, 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, ExportRSAPublicKey, FromXmlString, 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, ExportSubjectPublicKeyInfo, getKeyExchangeAlgorithm, getKeySize, getLegalKeySizes, getSignatureAlgorithm, setKeySize
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: System.Security.Cryptography.Csp, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: System.Security.Cryptography.Csp- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.Security.Cryptography.RSACryptoServiceProvider- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RSACryptoServiceProvider
public RSACryptoServiceProvider(Object instance) throws Throwable
Internal constructor. Use with caution- Throws:
Throwable
-
RSACryptoServiceProvider
public RSACryptoServiceProvider() throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, CryptographicException, PlatformNotSupportedException, OutOfMemoryException, IndexOutOfRangeException
-
RSACryptoServiceProvider
public RSACryptoServiceProvider(int dwKeySize, CspParameters parameters) throws Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, FormatException, CryptographicException, ObjectDisposedException, OutOfMemoryException
-
RSACryptoServiceProvider
public RSACryptoServiceProvider(int dwKeySize) throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, CryptographicException, PlatformNotSupportedException, OutOfMemoryException, IndexOutOfRangeException
-
RSACryptoServiceProvider
public RSACryptoServiceProvider(CspParameters parameters) throws Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, FormatException, CryptographicException, ObjectDisposedException, OutOfMemoryException
-
-
Method Detail
-
getJCOAssemblyName
public 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 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 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 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 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:
Throwable
- in case of error during cast operation
-
VerifyData
public boolean VerifyData(byte[] buffer, NetObject halg, byte[] signature) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, OutOfMemoryException, CryptographicException, ExternalException, FormatException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
ObjectDisposedException
RankException
OutOfMemoryException
CryptographicException
ExternalException
FormatException
-
VerifyData
public boolean VerifyData(JCORefOut dupParam0, NetObject dupParam1, JCORefOut dupParam2) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, OutOfMemoryException, CryptographicException, ExternalException, FormatException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
ObjectDisposedException
RankException
OutOfMemoryException
CryptographicException
ExternalException
FormatException
-
VerifyHash
public boolean VerifyHash(byte[] hash, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, OutOfMemoryException
- Overrides:
VerifyHash
in classRSA
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
CryptographicException
OutOfMemoryException
-
VerifyHash
public boolean VerifyHash(JCORefOut dupParam0, JCORefOut dupParam1, HashAlgorithmName dupParam2, RSASignaturePadding dupParam3) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, OutOfMemoryException
- Overrides:
VerifyHash
in classRSA
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
CryptographicException
OutOfMemoryException
-
VerifyHash
public boolean VerifyHash(byte[] rgbHash, String str, byte[] rgbSignature) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException, CryptographicException, ExternalException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
OutOfMemoryException
CryptographicException
ExternalException
-
VerifyHash
public boolean VerifyHash(JCORefOut dupParam0, String dupParam1, JCORefOut dupParam2) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException, CryptographicException, ExternalException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
OutOfMemoryException
CryptographicException
ExternalException
-
Decrypt
public byte[] Decrypt(byte[] rgb, boolean fOAEP) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, OutOfMemoryException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
CryptographicException
OutOfMemoryException
-
Decrypt
public byte[] Decrypt(JCORefOut dupParam0, boolean dupParam1) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, OutOfMemoryException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
CryptographicException
OutOfMemoryException
-
Decrypt
public byte[] Decrypt(byte[] data, RSAEncryptionPadding padding) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, OutOfMemoryException
- Overrides:
Decrypt
in classRSA
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
CryptographicException
OutOfMemoryException
-
Decrypt
public byte[] Decrypt(JCORefOut dupParam0, RSAEncryptionPadding dupParam1) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, OutOfMemoryException
- Overrides:
Decrypt
in classRSA
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
CryptographicException
OutOfMemoryException
-
DecryptValue
public byte[] DecryptValue(byte[] rgb) throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException
- Overrides:
DecryptValue
in classRSA
- Throws:
Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
-
DecryptValue
public byte[] DecryptValue(JCORefOut dupParam0) throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException
- Overrides:
DecryptValue
in classRSA
- Throws:
Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
-
Encrypt
public byte[] Encrypt(byte[] rgb, boolean fOAEP) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, OutOfMemoryException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
CryptographicException
OutOfMemoryException
-
Encrypt
public byte[] Encrypt(JCORefOut dupParam0, boolean dupParam1) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, OutOfMemoryException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
CryptographicException
OutOfMemoryException
-
Encrypt
public byte[] Encrypt(byte[] data, RSAEncryptionPadding padding) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, OutOfMemoryException
- Overrides:
Encrypt
in classRSA
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
CryptographicException
OutOfMemoryException
-
Encrypt
public byte[] Encrypt(JCORefOut dupParam0, RSAEncryptionPadding dupParam1) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, OutOfMemoryException
- Overrides:
Encrypt
in classRSA
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
CryptographicException
OutOfMemoryException
-
EncryptValue
public byte[] EncryptValue(byte[] rgb) throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException
- Overrides:
EncryptValue
in classRSA
- Throws:
Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
-
EncryptValue
public byte[] EncryptValue(JCORefOut dupParam0) throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException
- Overrides:
EncryptValue
in classRSA
- Throws:
Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
-
ExportCspBlob
public byte[] ExportCspBlob(boolean includePrivateParameters) throws Throwable, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CryptographicException, CultureNotFoundException, OutOfMemoryException
- Throws:
Throwable
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentException
ArgumentNullException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
CryptographicException
CultureNotFoundException
OutOfMemoryException
-
SignData
public byte[] SignData(byte[] buffer, int offset, int count, NetObject halg) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, OutOfMemoryException, CryptographicException, ExternalException, FormatException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
ObjectDisposedException
RankException
OutOfMemoryException
CryptographicException
ExternalException
FormatException
-
SignData
public byte[] SignData(JCORefOut dupParam0, int dupParam1, int dupParam2, NetObject dupParam3) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, OutOfMemoryException, CryptographicException, ExternalException, FormatException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
ObjectDisposedException
RankException
OutOfMemoryException
CryptographicException
ExternalException
FormatException
-
SignData
public byte[] SignData(byte[] buffer, NetObject halg) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, OutOfMemoryException, CryptographicException, ExternalException, FormatException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
ObjectDisposedException
RankException
OutOfMemoryException
CryptographicException
ExternalException
FormatException
-
SignData
public byte[] SignData(JCORefOut dupParam0, NetObject dupParam1) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, OutOfMemoryException, CryptographicException, ExternalException, FormatException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
ObjectDisposedException
RankException
OutOfMemoryException
CryptographicException
ExternalException
FormatException
-
SignData
public byte[] SignData(Stream inputStream, NetObject halg) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, OutOfMemoryException, CryptographicException, ExternalException, FormatException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
ObjectDisposedException
RankException
OutOfMemoryException
CryptographicException
ExternalException
FormatException
-
SignHash
public byte[] SignHash(byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, OutOfMemoryException
- Overrides:
SignHash
in classRSA
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
CryptographicException
OutOfMemoryException
-
SignHash
public byte[] SignHash(JCORefOut dupParam0, HashAlgorithmName dupParam1, RSASignaturePadding dupParam2) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, OutOfMemoryException
- Overrides:
SignHash
in classRSA
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
CryptographicException
OutOfMemoryException
-
SignHash
public byte[] SignHash(byte[] rgbHash, String str) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, OutOfMemoryException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
CryptographicException
OutOfMemoryException
-
SignHash
public byte[] SignHash(JCORefOut dupParam0, String dupParam1) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, OutOfMemoryException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
CryptographicException
OutOfMemoryException
-
ExportParameters
public RSAParameters ExportParameters(boolean includePrivateParameters) throws Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, CryptographicException, ObjectDisposedException, OutOfMemoryException
-
ImportCspBlob
public void ImportCspBlob(byte[] keyBlob) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException, CryptographicException, OutOfMemoryException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
ObjectDisposedException
RankException
FormatException
CryptographicException
OutOfMemoryException
-
ImportCspBlob
public void ImportCspBlob(JCORefOut dupParam0) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException, CryptographicException, OutOfMemoryException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
ObjectDisposedException
RankException
FormatException
CryptographicException
OutOfMemoryException
-
ImportParameters
public void ImportParameters(RSAParameters parameters) throws Throwable, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, ArrayTypeMismatchException, CryptographicException, ArgumentNullException, NotSupportedException, ObjectDisposedException, CultureNotFoundException, OutOfMemoryException
- Overrides:
ImportParameters
in classRSA
- Throws:
Throwable
InvalidOperationException
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
IndexOutOfRangeException
ArrayTypeMismatchException
CryptographicException
ArgumentNullException
NotSupportedException
ObjectDisposedException
CultureNotFoundException
OutOfMemoryException
-
getPersistKeyInCsp
public boolean getPersistKeyInCsp() throws Throwable, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CryptographicException, CultureNotFoundException, OutOfMemoryException
- Throws:
Throwable
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentException
ArgumentNullException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
CryptographicException
CultureNotFoundException
OutOfMemoryException
-
setPersistKeyInCsp
public void setPersistKeyInCsp(boolean PersistKeyInCsp) throws Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, CryptographicException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException
-
getPublicOnly
public boolean getPublicOnly() throws Throwable, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CryptographicException, CultureNotFoundException, OutOfMemoryException
- Throws:
Throwable
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentException
ArgumentNullException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
CryptographicException
CultureNotFoundException
OutOfMemoryException
-
getUseMachineKeyStore
public static boolean getUseMachineKeyStore() throws Throwable
- Throws:
Throwable
-
setUseMachineKeyStore
public static void setUseMachineKeyStore(boolean UseMachineKeyStore) throws Throwable
- Throws:
Throwable
-
getCspKeyContainerInfo
public CspKeyContainerInfo getCspKeyContainerInfo() throws Throwable, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CryptographicException, CultureNotFoundException, OutOfMemoryException
- Throws:
Throwable
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentException
ArgumentNullException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
CryptographicException
CultureNotFoundException
OutOfMemoryException
-
-