Package system.security.cryptography
Class ECDsaCng
- java.lang.Object
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
public class ECDsaCng extends ECDsa
The base .NET class managing System.Security.Cryptography.ECDsaCng, System.Security.Cryptography, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.Cryptography.ECDsaCng
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=8.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.ECDsaCngstatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ECDsaCng
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoECDsaCng
, a cast assert is made to check if types are compatible.ECParameters
ExportExplicitParameters(boolean includePrivateParameters)
ECParameters
ExportParameters(boolean includePrivateParameters)
void
FromXmlString(java.lang.String xml, ECKeyXmlFormat format)
void
GenerateKey(ECCurve curve)
CngAlgorithm
getHashAlgorithm()
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 TypeCngKey
getKey()
void
ImportParameters(ECParameters parameters)
void
setHashAlgorithm(CngAlgorithm HashAlgorithm)
void
setJCOInstance(JCObject instance)
void
setKey(CngKey Key)
byte[]
SignData(byte[] data)
byte[]
SignData(byte[] data, int offset, int count)
byte[]
SignData(JCORefOut dupParam0)
byte[]
SignData(JCORefOut dupParam0, int dupParam1, int dupParam2)
byte[]
SignData(Stream data)
byte[]
SignHash(byte[] hash)
byte[]
SignHash(JCORefOut dupParam0)
java.lang.String
ToXmlString(ECKeyXmlFormat format)
boolean
VerifyData(byte[] data, byte[] signature)
boolean
VerifyData(byte[] data, int offset, int count, byte[] signature)
boolean
VerifyData(JCORefOut dupParam0, int dupParam1, int dupParam2, JCORefOut dupParam3)
boolean
VerifyData(JCORefOut dupParam0, JCORefOut dupParam1)
boolean
VerifyData(Stream data, byte[] signature)
boolean
VerifyData(Stream dupParam0, JCORefOut dupParam1)
boolean
VerifyHash(byte[] hash, byte[] signature)
boolean
VerifyHash(JCORefOut dupParam0, JCORefOut dupParam1)
-
Methods inherited from class system.security.cryptography.ECDsa
Create, Create, CreateNewECDsa, CreateNewECDsa, FromXmlString, GetMaxSignatureSize, SignData, SignData, SignData, SignData, SignData, SignData, SignData, SignData, SignData, SignData, SignHash, SignHash, ToXmlString, VerifyData, VerifyData, VerifyData, VerifyData, VerifyData, VerifyData, VerifyData, VerifyData, VerifyData, VerifyData, VerifyData, VerifyData, VerifyHash, VerifyHash
-
Methods inherited from class system.security.cryptography.ECAlgorithm
ExportECPrivateKey, ExportECPrivateKeyPem
-
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=8.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.ECDsaCng- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ECDsaCng
public ECDsaCng(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
ECDsaCng
public ECDsaCng() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, CryptographicException
-
ECDsaCng
public ECDsaCng(int keySize) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, CryptographicException
-
ECDsaCng
public ECDsaCng(CngKey key) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, CryptographicException, NotSupportedException, CultureNotFoundException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ObjectDisposedException
InvalidOperationException
ArgumentOutOfRangeException
CryptographicException
NotSupportedException
CultureNotFoundException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
-
ECDsaCng
public ECDsaCng(ECCurve curve) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException
-
-
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 classECDsa
- 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 classECDsa
- 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 classECDsa
- 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 classECDsa
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classECDsa
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classECDsa
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static ECDsaCng cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoECDsaCng
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
ECDsaCng
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
VerifyData
public boolean VerifyData(byte[] data, byte[] signature) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, FormatException, ArrayTypeMismatchException, CryptographicException
-
VerifyData
public boolean VerifyData(JCORefOut dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, FormatException, ArrayTypeMismatchException, CryptographicException
-
VerifyData
public boolean VerifyData(byte[] data, int offset, int count, byte[] signature) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, ArrayTypeMismatchException, CryptographicException
-
VerifyData
public boolean VerifyData(JCORefOut dupParam0, int dupParam1, int dupParam2, JCORefOut dupParam3) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, ArrayTypeMismatchException, CryptographicException
-
VerifyData
public boolean VerifyData(Stream data, byte[] signature) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, CryptographicException, PlatformNotSupportedException, ArrayTypeMismatchException, IOException, FormatException
-
VerifyData
public boolean VerifyData(Stream dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, CryptographicException, PlatformNotSupportedException, ArrayTypeMismatchException, IOException, FormatException
-
VerifyHash
public boolean VerifyHash(byte[] hash, byte[] signature) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, AsnContentException, IndexOutOfRangeException, CryptographicException
- Overrides:
VerifyHash
in classECDsa
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
AsnContentException
IndexOutOfRangeException
CryptographicException
-
VerifyHash
public boolean VerifyHash(JCORefOut dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, AsnContentException, IndexOutOfRangeException, CryptographicException
- Overrides:
VerifyHash
in classECDsa
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
AsnContentException
IndexOutOfRangeException
CryptographicException
-
SignData
public byte[] SignData(byte[] data, int offset, int count) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, ArrayTypeMismatchException, CryptographicException
-
SignData
public byte[] SignData(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, ArrayTypeMismatchException, CryptographicException
-
SignData
public byte[] SignData(byte[] data) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, FormatException, ArrayTypeMismatchException, CryptographicException
-
SignData
public byte[] SignData(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, FormatException, ArrayTypeMismatchException, CryptographicException
-
SignData
public byte[] SignData(Stream data) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, CryptographicException, PlatformNotSupportedException, ArrayTypeMismatchException, IOException, FormatException
-
SignHash
public byte[] SignHash(byte[] hash) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException
-
SignHash
public byte[] SignHash(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException
-
ExportExplicitParameters
public ECParameters ExportExplicitParameters(boolean includePrivateParameters) throws java.lang.Throwable, ObjectDisposedException, CryptographicException, ArgumentException, InvalidOperationException, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Overrides:
ExportExplicitParameters
in classECAlgorithm
- Throws:
java.lang.Throwable
ObjectDisposedException
CryptographicException
ArgumentException
InvalidOperationException
NotSupportedException
PlatformNotSupportedException
ArgumentOutOfRangeException
-
ExportParameters
public ECParameters ExportParameters(boolean includePrivateParameters) throws java.lang.Throwable, ObjectDisposedException, CryptographicException, ArgumentException, InvalidOperationException, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Overrides:
ExportParameters
in classECAlgorithm
- Throws:
java.lang.Throwable
ObjectDisposedException
CryptographicException
ArgumentException
InvalidOperationException
NotSupportedException
PlatformNotSupportedException
ArgumentOutOfRangeException
-
ToXmlString
public java.lang.String ToXmlString(ECKeyXmlFormat format) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
FromXmlString
public void FromXmlString(java.lang.String xml, ECKeyXmlFormat format) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
GenerateKey
public void GenerateKey(ECCurve curve) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, CryptographicException, OutOfMemoryException, NotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException
- Overrides:
GenerateKey
in classECAlgorithm
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
CryptographicException
OutOfMemoryException
NotSupportedException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
-
ImportParameters
public void ImportParameters(ECParameters parameters) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, CryptographicException, OutOfMemoryException, NotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
- Overrides:
ImportParameters
in classECAlgorithm
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
CryptographicException
OutOfMemoryException
NotSupportedException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
-
getHashAlgorithm
public CngAlgorithm getHashAlgorithm() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setHashAlgorithm
public void setHashAlgorithm(CngAlgorithm HashAlgorithm) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
getKey
public CngKey getKey() throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, CryptographicException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentNullException, ArgumentException, OutOfMemoryException, NotSupportedException, FormatException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException
- Throws:
java.lang.Throwable
ObjectDisposedException
PlatformNotSupportedException
CryptographicException
ArgumentOutOfRangeException
InvalidOperationException
ArgumentNullException
ArgumentException
OutOfMemoryException
NotSupportedException
FormatException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
-
setKey
public void setKey(CngKey Key) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException
-
-