public class ECDiffieHellmanCng extends ECDiffieHellman
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.Cryptography.ECDiffieHellmanCng
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Security.Cryptography, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Security.Cryptography
|
static java.lang.String |
className
Qualified class name: System.Security.Cryptography.ECDiffieHellmanCng
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
ECDiffieHellmanCng() |
ECDiffieHellmanCng(CngKey key) |
ECDiffieHellmanCng(ECCurve curve) |
ECDiffieHellmanCng(int keySize) |
ECDiffieHellmanCng(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static ECDiffieHellmanCng |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into ECDiffieHellmanCng, a cast assert is made to check if types are compatible. |
byte[] |
DeriveKeyFromHash(ECDiffieHellmanPublicKey otherPartyPublicKey,
HashAlgorithmName hashAlgorithm,
byte[] secretPrepend,
byte[] secretAppend) |
byte[] |
DeriveKeyFromHash(ECDiffieHellmanPublicKey dupParam0,
HashAlgorithmName dupParam1,
JCORefOut dupParam2,
JCORefOut dupParam3) |
byte[] |
DeriveKeyFromHmac(ECDiffieHellmanPublicKey otherPartyPublicKey,
HashAlgorithmName hashAlgorithm,
byte[] hmacKey,
byte[] secretPrepend,
byte[] secretAppend) |
byte[] |
DeriveKeyFromHmac(ECDiffieHellmanPublicKey dupParam0,
HashAlgorithmName dupParam1,
JCORefOut dupParam2,
JCORefOut dupParam3,
JCORefOut dupParam4) |
byte[] |
DeriveKeyMaterial(CngKey otherPartyPublicKey) |
byte[] |
DeriveKeyMaterial(ECDiffieHellmanPublicKey otherPartyPublicKey) |
byte[] |
DeriveKeyTls(ECDiffieHellmanPublicKey otherPartyPublicKey,
byte[] prfLabel,
byte[] prfSeed) |
byte[] |
DeriveKeyTls(ECDiffieHellmanPublicKey dupParam0,
JCORefOut dupParam1,
JCORefOut dupParam2) |
byte[] |
DeriveRawSecretAgreement(ECDiffieHellmanPublicKey otherPartyPublicKey) |
SafeNCryptSecretHandle |
DeriveSecretAgreementHandle(CngKey otherPartyPublicKey) |
SafeNCryptSecretHandle |
DeriveSecretAgreementHandle(ECDiffieHellmanPublicKey otherPartyPublicKey) |
ECParameters |
ExportExplicitParameters(boolean includePrivateParameters) |
ECParameters |
ExportParameters(boolean includePrivateParameters) |
void |
FromXmlString(java.lang.String xml,
ECKeyXmlFormat format) |
void |
GenerateKey(ECCurve curve) |
CngAlgorithm |
getHashAlgorithm() |
byte[] |
getHmacKey() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
CngKey |
getKey() |
ECDiffieHellmanKeyDerivationFunction |
getKeyDerivationFunction() |
byte[] |
getLabel() |
byte[] |
getSecretAppend() |
byte[] |
getSecretPrepend() |
byte[] |
getSeed() |
boolean |
getUseSecretAgreementAsHmacKey() |
void |
ImportParameters(ECParameters parameters) |
void |
setHashAlgorithm(CngAlgorithm HashAlgorithm) |
void |
setHmacKey(byte[] HmacKey) |
void |
setJCOInstance(JCObject instance) |
void |
setKey(CngKey Key) |
void |
setKeyDerivationFunction(ECDiffieHellmanKeyDerivationFunction KeyDerivationFunction) |
void |
setLabel(byte[] Label) |
void |
setSecretAppend(byte[] SecretAppend) |
void |
setSecretPrepend(byte[] SecretPrepend) |
void |
setSeed(byte[] Seed) |
java.lang.String |
ToXmlString(ECKeyXmlFormat format) |
Create, Create, CreateNewECDiffieHellman, CreateNewECDiffieHellman, DeriveKeyFromHash, DeriveKeyFromHmac, DeriveKeyFromHmac, FromXmlString, getPublicKey, ToXmlStringExportECPrivateKey, ExportECPrivateKeyPemClear, close, Create, Create, Dispose, ExportPkcs8PrivateKey, ExportPkcs8PrivateKeyPem, ExportSubjectPublicKeyInfo, ExportSubjectPublicKeyInfoPem, getKeyExchangeAlgorithm, getKeySize, getLegalKeySizes, getSignatureAlgorithm, setKeySizepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public ECDiffieHellmanCng()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException,
CryptographicException
public ECDiffieHellmanCng(CngKey key) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, CryptographicException, NotSupportedException, CultureNotFoundException, MissingMethodException, TargetInvocationException
public ECDiffieHellmanCng(ECCurve curve) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
public ECDiffieHellmanCng(int keySize)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
NotSupportedException,
InvalidOperationException,
ObjectDisposedException,
CryptographicException
public ECDiffieHellmanCng(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static ECDiffieHellmanCng cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into ECDiffieHellmanCng, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedECDiffieHellmanCng instancejava.lang.Throwable - in case of error during cast operationpublic byte[] DeriveKeyFromHash(ECDiffieHellmanPublicKey otherPartyPublicKey, HashAlgorithmName hashAlgorithm, byte[] secretPrepend, byte[] secretAppend) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, OutOfMemoryException, IndexOutOfRangeException
DeriveKeyFromHash in class ECDiffieHellmanjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionCryptographicExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionpublic byte[] DeriveKeyFromHash(ECDiffieHellmanPublicKey dupParam0, HashAlgorithmName dupParam1, JCORefOut dupParam2, JCORefOut dupParam3) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, OutOfMemoryException, IndexOutOfRangeException
DeriveKeyFromHash in class ECDiffieHellmanjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionCryptographicExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionpublic byte[] DeriveKeyFromHmac(ECDiffieHellmanPublicKey otherPartyPublicKey, HashAlgorithmName hashAlgorithm, byte[] hmacKey, byte[] secretPrepend, byte[] secretAppend) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, OutOfMemoryException, IndexOutOfRangeException
DeriveKeyFromHmac in class ECDiffieHellmanjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionCryptographicExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionpublic byte[] DeriveKeyFromHmac(ECDiffieHellmanPublicKey dupParam0, HashAlgorithmName dupParam1, JCORefOut dupParam2, JCORefOut dupParam3, JCORefOut dupParam4) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, OutOfMemoryException, IndexOutOfRangeException
DeriveKeyFromHmac in class ECDiffieHellmanjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionCryptographicExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionpublic byte[] DeriveKeyMaterial(CngKey otherPartyPublicKey) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException
public byte[] DeriveKeyMaterial(ECDiffieHellmanPublicKey otherPartyPublicKey) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, MissingMethodException, TargetInvocationException, CryptographicException, OutOfMemoryException, IndexOutOfRangeException
DeriveKeyMaterial in class ECDiffieHellmanjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionMissingMethodExceptionTargetInvocationExceptionCryptographicExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionpublic byte[] DeriveKeyTls(ECDiffieHellmanPublicKey otherPartyPublicKey, byte[] prfLabel, byte[] prfSeed) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, OutOfMemoryException
DeriveKeyTls in class ECDiffieHellmanjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionCryptographicExceptionOutOfMemoryExceptionpublic byte[] DeriveKeyTls(ECDiffieHellmanPublicKey dupParam0, JCORefOut dupParam1, JCORefOut dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, OutOfMemoryException
DeriveKeyTls in class ECDiffieHellmanjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionCryptographicExceptionOutOfMemoryExceptionpublic byte[] DeriveRawSecretAgreement(ECDiffieHellmanPublicKey otherPartyPublicKey) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, OutOfMemoryException, NullReferenceException
DeriveRawSecretAgreement in class ECDiffieHellmanjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionCryptographicExceptionOutOfMemoryExceptionNullReferenceExceptionpublic SafeNCryptSecretHandle DeriveSecretAgreementHandle(CngKey otherPartyPublicKey) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, MissingMethodException, TargetInvocationException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionCryptographicExceptionMissingMethodExceptionTargetInvocationExceptionpublic SafeNCryptSecretHandle DeriveSecretAgreementHandle(ECDiffieHellmanPublicKey otherPartyPublicKey) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, MissingMethodException, TargetInvocationException, CryptographicException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionMissingMethodExceptionTargetInvocationExceptionCryptographicExceptionOutOfMemoryExceptionpublic ECParameters ExportExplicitParameters(boolean includePrivateParameters) throws java.lang.Throwable, ObjectDisposedException, CryptographicException, ArgumentOutOfRangeException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentNullException, NotSupportedException, MissingMethodException, TargetInvocationException, OutOfMemoryException, IndexOutOfRangeException, ArrayTypeMismatchException, AsnContentException
ExportExplicitParameters in class ECAlgorithmjava.lang.ThrowableObjectDisposedExceptionCryptographicExceptionArgumentOutOfRangeExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentNullExceptionNotSupportedExceptionMissingMethodExceptionTargetInvocationExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionAsnContentExceptionpublic ECParameters ExportParameters(boolean includePrivateParameters) throws java.lang.Throwable, ObjectDisposedException, CryptographicException, ArgumentOutOfRangeException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentNullException, NotSupportedException, MissingMethodException, TargetInvocationException, OutOfMemoryException, IndexOutOfRangeException, ArrayTypeMismatchException, AsnContentException
ExportParameters in class ECAlgorithmjava.lang.ThrowableObjectDisposedExceptionCryptographicExceptionArgumentOutOfRangeExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentNullExceptionNotSupportedExceptionMissingMethodExceptionTargetInvocationExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionAsnContentExceptionpublic void FromXmlString(java.lang.String xml,
ECKeyXmlFormat format)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException
public void GenerateKey(ECCurve curve) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, CryptographicException, OutOfMemoryException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, MissingMethodException, TargetInvocationException
GenerateKey in class ECAlgorithmjava.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionNotSupportedExceptionInvalidOperationExceptionObjectDisposedExceptionCryptographicExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionMissingMethodExceptionTargetInvocationExceptionpublic CngAlgorithm getHashAlgorithm() throws java.lang.Throwable
java.lang.Throwablepublic byte[] getHmacKey()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class ECDiffieHellmanString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class ECDiffieHellmanString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class ECDiffieHellmanObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class ECDiffieHellmanString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class ECDiffieHellmanJCType representing the CLR Type of the instantiated Classpublic CngKey getKey() throws java.lang.Throwable, ObjectDisposedException, CryptographicException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, InvalidOperationException, OutOfMemoryException, NotSupportedException, FormatException, MissingMethodException, TargetInvocationException
java.lang.ThrowableObjectDisposedExceptionCryptographicExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionOutOfMemoryExceptionNotSupportedExceptionFormatExceptionMissingMethodExceptionTargetInvocationExceptionpublic ECDiffieHellmanKeyDerivationFunction getKeyDerivationFunction() throws java.lang.Throwable
java.lang.Throwablepublic byte[] getLabel()
throws java.lang.Throwable
java.lang.Throwablepublic byte[] getSecretAppend()
throws java.lang.Throwable
java.lang.Throwablepublic byte[] getSecretPrepend()
throws java.lang.Throwable
java.lang.Throwablepublic byte[] getSeed()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getUseSecretAgreementAsHmacKey()
throws java.lang.Throwable
java.lang.Throwablepublic void ImportParameters(ECParameters parameters) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, CryptographicException, OutOfMemoryException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
ImportParameters in class ECAlgorithmjava.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionNotSupportedExceptionInvalidOperationExceptionObjectDisposedExceptionCryptographicExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionpublic void setHashAlgorithm(CngAlgorithm HashAlgorithm) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public void setHmacKey(byte[] HmacKey)
throws java.lang.Throwable
java.lang.Throwablepublic void setJCOInstance(JCObject instance)
setJCOInstance in class ECDiffieHellmanpublic void setKey(CngKey Key) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException
public void setKeyDerivationFunction(ECDiffieHellmanKeyDerivationFunction KeyDerivationFunction) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
public void setLabel(byte[] Label)
throws java.lang.Throwable
java.lang.Throwablepublic void setSecretAppend(byte[] SecretAppend)
throws java.lang.Throwable
java.lang.Throwablepublic void setSecretPrepend(byte[] SecretPrepend)
throws java.lang.Throwable
java.lang.Throwablepublic void setSeed(byte[] Seed)
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String ToXmlString(ECKeyXmlFormat format) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException