public class CngKey extends NetObject implements java.lang.AutoCloseable
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Security.Cryptography.CngKey
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=8.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.CngKey
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
CngKey() |
CngKey(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static CngKey |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into CngKey, a cast assert is made to check if types are compatible. |
void |
close() |
static CngKey |
Create(CngAlgorithm algorithm)
Invokes the .NET member Create.
|
static CngKey |
Create(CngAlgorithm algorithm,
java.lang.String keyName)
Invokes the .NET member Create.
|
static CngKey |
Create(CngAlgorithm algorithm,
java.lang.String keyName,
CngKeyCreationParameters creationParameters)
Invokes the .NET member Create.
|
void |
Delete()
Invokes the .NET member Delete.
|
void |
Dispose()
Invokes the .NET member Dispose.
|
static boolean |
Exists(java.lang.String keyName)
Invokes the .NET member Exists.
|
static boolean |
Exists(java.lang.String keyName,
CngProvider provider)
Invokes the .NET member Exists.
|
static boolean |
Exists(java.lang.String keyName,
CngProvider provider,
CngKeyOpenOptions options)
Invokes the .NET member Exists.
|
byte[] |
Export(CngKeyBlobFormat format)
Invokes the .NET member Export.
|
CngAlgorithm |
getAlgorithm()
Gets the value of the .NET property Algorithm.
|
CngAlgorithmGroup |
getAlgorithmGroup()
Gets the value of the .NET property AlgorithmGroup.
|
CngExportPolicies |
getExportPolicy()
Gets the value of the .NET property ExportPolicy.
|
SafeNCryptKeyHandle |
getHandle()
Gets the value of the .NET property Handle.
|
boolean |
getIsEphemeral()
Gets the value of the .NET property IsEphemeral.
|
boolean |
getIsMachineKey()
Gets the value of the .NET property IsMachineKey.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
java.lang.String |
getKeyName()
Gets the value of the .NET property KeyName.
|
int |
getKeySize()
Gets the value of the .NET property KeySize.
|
CngKeyUsages |
getKeyUsage()
Gets the value of the .NET property KeyUsage.
|
CngProperty |
GetProperty(java.lang.String name,
CngPropertyOptions options)
Invokes the .NET member GetProperty.
|
CngProvider |
getProvider()
Gets the value of the .NET property Provider.
|
SafeNCryptProviderHandle |
getProviderHandle()
Gets the value of the .NET property ProviderHandle.
|
CngUIPolicy |
getUIPolicy()
Gets the value of the .NET property UIPolicy.
|
java.lang.String |
getUniqueName()
Gets the value of the .NET property UniqueName.
|
boolean |
HasProperty(java.lang.String name,
CngPropertyOptions options)
Invokes the .NET member HasProperty.
|
static CngKey |
Import(byte[] keyBlob,
CngKeyBlobFormat format)
Invokes the .NET member Import.
|
static CngKey |
Import(byte[] keyBlob,
CngKeyBlobFormat format,
CngProvider provider)
Invokes the .NET member Import.
|
static CngKey |
Import(JCORefOut dupParam0,
CngKeyBlobFormat dupParam1)
Invokes the .NET member Import.
|
static CngKey |
Import(JCORefOut dupParam0,
CngKeyBlobFormat dupParam1,
CngProvider dupParam2)
Invokes the .NET member Import.
|
static CngKey |
Open(SafeNCryptKeyHandle keyHandle,
CngKeyHandleOpenOptions keyHandleOpenOptions)
Invokes the .NET member Open.
|
static CngKey |
Open(java.lang.String keyName)
Invokes the .NET member Open.
|
static CngKey |
Open(java.lang.String keyName,
CngProvider provider)
Invokes the .NET member Open.
|
static CngKey |
Open(java.lang.String keyName,
CngProvider provider,
CngKeyOpenOptions openOptions)
Invokes the .NET member Open.
|
void |
setExportPolicy(CngExportPolicies ExportPolicy)
Sets the value of the .NET property ExportPolicy.
|
void |
setIsEphemeral(boolean IsEphemeral)
Sets the value of the .NET property IsEphemeral.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
SetProperty(CngProperty property)
Invokes the .NET member SetProperty.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public CngKey()
throws java.lang.Throwable
java.lang.Throwablepublic CngKey(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic static CngKey cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into CngKey, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedCngKey instancejava.lang.Throwable - in case of error during cast operationpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic static CngKey Create(CngAlgorithm algorithm) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, InvalidOperationException, ArgumentOutOfRangeException, CryptographicException
algorithm - the argument of type CngAlgorithmjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic static CngKey Create(CngAlgorithm algorithm, java.lang.String keyName) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, ObjectDisposedException, IndexOutOfRangeException, FormatException, CryptographicException
algorithm - the argument of type CngAlgorithmkeyName - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic static CngKey Create(CngAlgorithm algorithm, java.lang.String keyName, CngKeyCreationParameters creationParameters) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, IndexOutOfRangeException, FormatException, CryptographicException
algorithm - the argument of type CngAlgorithmkeyName - the argument of type java.lang.StringcreationParameters - the argument of type CngKeyCreationParametersjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic void Delete()
throws java.lang.Throwable,
ObjectDisposedException,
InvalidOperationException,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
IndexOutOfRangeException,
NotSupportedException,
FormatException,
CryptographicException
java.lang.Throwable - if the call fails in the bridge or in the CLRObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic void Dispose()
throws java.lang.Throwable,
ObjectDisposedException,
ArgumentNullException
java.lang.Throwable - if the call fails in the bridge or in the CLRObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static boolean Exists(java.lang.String keyName)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
MethodAccessException,
MissingMethodException,
MemberAccessException,
TargetInvocationException,
InvalidOperationException,
ArgumentOutOfRangeException,
CryptographicException
keyName - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic static boolean Exists(java.lang.String keyName,
CngProvider provider)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
PlatformNotSupportedException,
MethodAccessException,
MissingMethodException,
MemberAccessException,
TargetInvocationException,
ObjectDisposedException,
IndexOutOfRangeException,
FormatException,
CryptographicException
keyName - the argument of type java.lang.Stringprovider - the argument of type CngProviderjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic static boolean Exists(java.lang.String keyName,
CngProvider provider,
CngKeyOpenOptions options)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
MethodAccessException,
MissingMethodException,
MemberAccessException,
TargetInvocationException,
IndexOutOfRangeException,
FormatException,
CryptographicException
keyName - the argument of type java.lang.Stringprovider - the argument of type CngProvideroptions - the argument of type CngKeyOpenOptionsjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic byte[] Export(CngKeyBlobFormat format) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, CryptographicException
format - the argument of type CngKeyBlobFormatjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic CngAlgorithm getAlgorithm() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, CryptographicException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic CngAlgorithmGroup getAlgorithmGroup() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, CryptographicException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic CngExportPolicies getExportPolicy() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, CryptographicException, ArgumentNullException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itCryptographicException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic SafeNCryptKeyHandle getHandle() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, ArgumentNullException, ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itArgumentNullException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic boolean getIsEphemeral()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic boolean getIsMachineKey()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
ObjectDisposedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
FormatException,
CryptographicException,
ArgumentNullException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itCryptographicException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic java.lang.String getKeyName()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
ObjectDisposedException,
IndexOutOfRangeException,
FormatException,
CryptographicException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic int getKeySize()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
ObjectDisposedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
FormatException,
CryptographicException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic CngKeyUsages getKeyUsage() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, CryptographicException, ArgumentNullException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itCryptographicException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic CngProperty GetProperty(java.lang.String name, CngPropertyOptions options) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, CryptographicException
name - the argument of type java.lang.Stringoptions - the argument of type CngPropertyOptionsjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic CngProvider getProvider() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, CryptographicException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic SafeNCryptProviderHandle getProviderHandle() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, ArgumentNullException, ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itArgumentNullException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic CngUIPolicy getUIPolicy() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, CryptographicException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic java.lang.String getUniqueName()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
ObjectDisposedException,
IndexOutOfRangeException,
FormatException,
CryptographicException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic boolean HasProperty(java.lang.String name,
CngPropertyOptions options)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException,
FormatException,
CryptographicException
name - the argument of type java.lang.Stringoptions - the argument of type CngPropertyOptionsjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic static CngKey Import(byte[] keyBlob, CngKeyBlobFormat format) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, CryptographicException, ArgumentOutOfRangeException, OutOfMemoryException, InvalidOperationException
keyBlob - the argument of type byte[]format - the argument of type CngKeyBlobFormatjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itCryptographicException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic static CngKey Import(byte[] keyBlob, CngKeyBlobFormat format, CngProvider provider) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, CryptographicException, OutOfMemoryException, FormatException
keyBlob - the argument of type byte[]format - the argument of type CngKeyBlobFormatprovider - the argument of type CngProviderjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itCryptographicException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itpublic static CngKey Import(JCORefOut dupParam0, CngKeyBlobFormat dupParam1) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, CryptographicException, ArgumentOutOfRangeException, OutOfMemoryException, InvalidOperationException
dupParam0 - the argument of type JCORefOutdupParam1 - the argument of type CngKeyBlobFormatjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itCryptographicException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic static CngKey Import(JCORefOut dupParam0, CngKeyBlobFormat dupParam1, CngProvider dupParam2) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, CryptographicException, OutOfMemoryException, FormatException
dupParam0 - the argument of type JCORefOutdupParam1 - the argument of type CngKeyBlobFormatdupParam2 - the argument of type CngProviderjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itCryptographicException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itpublic static CngKey Open(SafeNCryptKeyHandle keyHandle, CngKeyHandleOpenOptions keyHandleOpenOptions) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, IndexOutOfRangeException, FormatException, CryptographicException
keyHandle - the argument of type SafeNCryptKeyHandlekeyHandleOpenOptions - the argument of type CngKeyHandleOpenOptionsjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic static CngKey Open(java.lang.String keyName) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, InvalidOperationException, ArgumentOutOfRangeException, CryptographicException
keyName - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic static CngKey Open(java.lang.String keyName, CngProvider provider) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, ObjectDisposedException, IndexOutOfRangeException, FormatException, CryptographicException
keyName - the argument of type java.lang.Stringprovider - the argument of type CngProviderjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic static CngKey Open(java.lang.String keyName, CngProvider provider, CngKeyOpenOptions openOptions) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, IndexOutOfRangeException, FormatException, CryptographicException
keyName - the argument of type java.lang.Stringprovider - the argument of type CngProvideropenOptions - the argument of type CngKeyOpenOptionsjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic void setExportPolicy(CngExportPolicies ExportPolicy) throws java.lang.Throwable, ObjectDisposedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, ArrayTypeMismatchException, FormatException, CryptographicException
ExportPolicy - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itFormatException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic void setIsEphemeral(boolean IsEphemeral)
throws java.lang.Throwable,
ObjectDisposedException,
InvalidOperationException,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
IndexOutOfRangeException,
NotSupportedException,
FormatException,
CryptographicException
IsEphemeral - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic void SetProperty(CngProperty property) throws java.lang.Throwable, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, ArrayTypeMismatchException, NotSupportedException, FormatException, CryptographicException, ObjectDisposedException
property - the argument of type CngPropertyjava.lang.Throwable - if the call fails in the bridge or in the CLRInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itCryptographicException - if the .NET member raises itObjectDisposedException - if the .NET member raises it