Package system.security.cryptography
Class ECDsaCng
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.security.cryptography.AsymmetricAlgorithm
-
- system.security.cryptography.ECDsa
-
- system.security.cryptography.ECDsaCng
-
- All Implemented Interfaces:
AutoCloseable
,IJCOBridgeReflected
public class ECDsaCng extends ECDsa
The base .NET class managing System.Security.Cryptography.ECDsaCng, System.Security.Cryptography.Cng, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.See: https://docs.microsoft.com/en-us/dotnet/api/System.Security.Cryptography.ECDsaCng
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: System.Security.Cryptography.Cng, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic String
assemblyShortName
Assembly name: System.Security.Cryptography.Cngstatic 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(String xml, ECKeyXmlFormat format)
void
GenerateKey(ECCurve curve)
CngAlgorithm
getHashAlgorithm()
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 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)
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, ExportECPrivateKey, 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.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.Cng, 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.Cng- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.Security.Cryptography.ECDsaCng- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ECDsaCng
public ECDsaCng(Object instance) throws Throwable
Internal constructor. Use with caution- Throws:
Throwable
-
ECDsaCng
public ECDsaCng() throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, CryptographicException
-
ECDsaCng
public ECDsaCng(int keySize) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CryptographicException
-
ECDsaCng
public ECDsaCng(CngKey key) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CryptographicException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
CryptographicException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
-
ECDsaCng
public ECDsaCng(ECCurve curve) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
-
Method Detail
-
getJCOAssemblyName
public 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 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 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 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 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:
Throwable
- in case of error during cast operation
-
VerifyData
public boolean VerifyData(byte[] data, byte[] signature) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
VerifyData
public boolean VerifyData(JCORefOut dupParam0, JCORefOut dupParam1) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
VerifyData
public boolean VerifyData(byte[] data, int offset, int count, byte[] signature) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
VerifyData
public boolean VerifyData(JCORefOut dupParam0, int dupParam1, int dupParam2, JCORefOut dupParam3) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
VerifyData
public boolean VerifyData(Stream data, byte[] signature) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
VerifyData
public boolean VerifyData(Stream dupParam0, JCORefOut dupParam1) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
VerifyHash
public boolean VerifyHash(byte[] hash, byte[] signature) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, AsnContentException, CryptographicException
- Overrides:
VerifyHash
in classECDsa
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
AsnContentException
CryptographicException
-
VerifyHash
public boolean VerifyHash(JCORefOut dupParam0, JCORefOut dupParam1) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, AsnContentException, CryptographicException
- Overrides:
VerifyHash
in classECDsa
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
AsnContentException
CryptographicException
-
SignData
public byte[] SignData(byte[] data, int offset, int count) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
SignData
public byte[] SignData(JCORefOut dupParam0, int dupParam1, int dupParam2) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
SignData
public byte[] SignData(byte[] data) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
SignData
public byte[] SignData(JCORefOut dupParam0) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
SignData
public byte[] SignData(Stream data) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
SignHash
public byte[] SignHash(byte[] hash) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException
- Overrides:
SignHash
in classECDsa
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
CryptographicException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
-
SignHash
public byte[] SignHash(JCORefOut dupParam0) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException
- Overrides:
SignHash
in classECDsa
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
CryptographicException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
-
ExportExplicitParameters
public ECParameters ExportExplicitParameters(boolean includePrivateParameters) throws Throwable, ObjectDisposedException, CryptographicException, ArgumentNullException, ArgumentException, InvalidOperationException, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException
-
ExportParameters
public ECParameters ExportParameters(boolean includePrivateParameters) throws Throwable, ObjectDisposedException, CryptographicException, ArgumentNullException, ArgumentException, InvalidOperationException, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException
-
ToXmlString
public String ToXmlString(ECKeyXmlFormat format) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
FromXmlString
public void FromXmlString(String xml, ECKeyXmlFormat format) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
GenerateKey
public void GenerateKey(ECCurve curve) throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, CryptographicException, PlatformNotSupportedException, InvalidOperationException, OutOfMemoryException, NotSupportedException, MissingMethodException, TargetInvocationException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, ObjectDisposedException
- Overrides:
GenerateKey
in classECDsa
- Throws:
Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
CultureNotFoundException
CryptographicException
PlatformNotSupportedException
InvalidOperationException
OutOfMemoryException
NotSupportedException
MissingMethodException
TargetInvocationException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
ObjectDisposedException
-
ImportParameters
public void ImportParameters(ECParameters parameters) throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, CryptographicException, PlatformNotSupportedException, InvalidOperationException, OutOfMemoryException, NotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, ObjectDisposedException
- Overrides:
ImportParameters
in classECDsa
- Throws:
Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
CultureNotFoundException
CryptographicException
PlatformNotSupportedException
InvalidOperationException
OutOfMemoryException
NotSupportedException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
ObjectDisposedException
-
getHashAlgorithm
public CngAlgorithm getHashAlgorithm() throws Throwable
- Throws:
Throwable
-
setHashAlgorithm
public void setHashAlgorithm(CngAlgorithm HashAlgorithm) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
getKey
public CngKey getKey() throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, CryptographicException, FormatException, OutOfMemoryException
-
setKey
public void setKey(CngKey Key) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException
-
-