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.StringassemblyFullNameFully assembly qualified name: System.Security.Cryptography, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Security.Cryptographystatic java.lang.StringclassNameQualified class name: System.Security.Cryptography.ECDsaCngstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ECDsaCngcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoECDsaCng, a cast assert is made to check if types are compatible.ECParametersExportExplicitParameters(boolean includePrivateParameters)ECParametersExportParameters(boolean includePrivateParameters)voidFromXmlString(java.lang.String xml, ECKeyXmlFormat format)voidGenerateKey(ECCurve curve)CngAlgorithmgetHashAlgorithm()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeCngKeygetKey()voidImportParameters(ECParameters parameters)voidsetHashAlgorithm(CngAlgorithm HashAlgorithm)voidsetJCOInstance(JCObject instance)voidsetKey(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.StringToXmlString(ECKeyXmlFormat format)booleanVerifyData(byte[] data, byte[] signature)booleanVerifyData(byte[] data, int offset, int count, byte[] signature)booleanVerifyData(JCORefOut dupParam0, int dupParam1, int dupParam2, JCORefOut dupParam3)booleanVerifyData(JCORefOut dupParam0, JCORefOut dupParam1)booleanVerifyData(Stream data, byte[] signature)booleanVerifyData(Stream dupParam0, JCORefOut dupParam1)booleanVerifyHash(byte[] hash, byte[] signature)booleanVerifyHash(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.ThrowableInternal 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.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionCryptographicExceptionNotSupportedExceptionCultureNotFoundExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationException
-
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:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classECDsa- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classECDsa- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classECDsa- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classECDsa- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classECDsa
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classECDsa- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static ECDsaCng cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoECDsaCng, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
ECDsaCnginstance- 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:
VerifyHashin classECDsa- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionAsnContentExceptionIndexOutOfRangeExceptionCryptographicException
-
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:
VerifyHashin classECDsa- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionAsnContentExceptionIndexOutOfRangeExceptionCryptographicException
-
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:
ExportExplicitParametersin classECAlgorithm- Throws:
java.lang.ThrowableObjectDisposedExceptionCryptographicExceptionArgumentExceptionInvalidOperationExceptionNotSupportedExceptionPlatformNotSupportedExceptionArgumentOutOfRangeException
-
ExportParameters
public ECParameters ExportParameters(boolean includePrivateParameters) throws java.lang.Throwable, ObjectDisposedException, CryptographicException, ArgumentException, InvalidOperationException, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Overrides:
ExportParametersin classECAlgorithm- Throws:
java.lang.ThrowableObjectDisposedExceptionCryptographicExceptionArgumentExceptionInvalidOperationExceptionNotSupportedExceptionPlatformNotSupportedExceptionArgumentOutOfRangeException
-
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:
GenerateKeyin classECAlgorithm- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionCryptographicExceptionOutOfMemoryExceptionNotSupportedExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationException
-
ImportParameters
public void ImportParameters(ECParameters parameters) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, CryptographicException, OutOfMemoryException, NotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
- Overrides:
ImportParametersin classECAlgorithm- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionCryptographicExceptionOutOfMemoryExceptionNotSupportedExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchException
-
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.ThrowableObjectDisposedExceptionPlatformNotSupportedExceptionCryptographicExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArgumentNullExceptionArgumentExceptionOutOfMemoryExceptionNotSupportedExceptionFormatExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationException
-
setKey
public void setKey(CngKey Key) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException
-
-