public class Hpke extends NetObject implements java.lang.AutoCloseable
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Security.Cryptography.Hpke
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=11.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.Hpke
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Hpke() |
Hpke(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Hpke |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Hpke, a cast assert is made to check if types are compatible. |
void |
close() |
HpkeRecipient |
CreatePskRecipient(byte[] encapsulatedSecret,
byte[] psk,
byte[] pskId,
byte[] info)
Invokes the .NET member CreatePskRecipient.
|
HpkeRecipient |
CreatePskRecipient(JCORefOut dupParam0,
JCORefOut dupParam1,
JCORefOut dupParam2,
JCORefOut dupParam3)
Invokes the .NET member CreatePskRecipient.
|
HpkeSender |
CreatePskSender(byte[] psk,
byte[] pskId,
JCORefOut encapsulatedSecret,
byte[] info)
Invokes the .NET member CreatePskSender.
|
HpkeRecipient |
CreateRecipient(byte[] encapsulatedSecret,
byte[] info)
Invokes the .NET member CreateRecipient.
|
HpkeRecipient |
CreateRecipient(JCORefOut dupParam0,
JCORefOut dupParam1)
Invokes the .NET member CreateRecipient.
|
static Hpke |
DeriveKey(HpkeSuite suite,
byte[] ikm)
Invokes the .NET member DeriveKey.
|
static Hpke |
DeriveKey(HpkeSuite dupParam0,
JCORefOut dupParam1)
Invokes the .NET member DeriveKey.
|
void |
Dispose()
Invokes the .NET member Dispose.
|
byte[] |
ExportDecapsulationKey()
Invokes the .NET member ExportDecapsulationKey.
|
byte[] |
ExportEncapsulationKey()
Invokes the .NET member ExportEncapsulationKey.
|
static Hpke |
GenerateKey(HpkeSuite suite)
Invokes the .NET member GenerateKey.
|
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. |
HpkeSuite |
getSuite()
Gets the value of the .NET property Suite.
|
static Hpke |
ImportDecapsulationKey(HpkeSuite suite,
byte[] source)
Invokes the .NET member ImportDecapsulationKey.
|
static Hpke |
ImportDecapsulationKey(HpkeSuite dupParam0,
JCORefOut dupParam1)
Invokes the .NET member ImportDecapsulationKey.
|
static Hpke |
ImportEncapsulationKey(HpkeSuite suite,
byte[] source)
Invokes the .NET member ImportEncapsulationKey.
|
static Hpke |
ImportEncapsulationKey(HpkeSuite dupParam0,
JCORefOut dupParam1)
Invokes the .NET member ImportEncapsulationKey.
|
static boolean |
IsSupported(HpkeSuite suite)
Invokes the .NET member IsSupported.
|
byte[] |
Open(byte[] encapsulatedSecret,
byte[] ciphertext,
byte[] associatedData,
byte[] info)
Invokes the .NET member Open.
|
byte[] |
Open(JCORefOut dupParam0,
JCORefOut dupParam1,
JCORefOut dupParam2,
JCORefOut dupParam3)
Invokes the .NET member Open.
|
void |
Seal(byte[] plaintext,
JCORefOut encapsulatedSecret,
JCORefOut ciphertext,
byte[] associatedData,
byte[] info)
Invokes the .NET member Seal.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Hpke()
throws java.lang.Throwable
java.lang.Throwablepublic Hpke(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 Hpke cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Hpke, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedHpke instancejava.lang.Throwable - in case of error during cast operationpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic HpkeRecipient CreatePskRecipient(byte[] encapsulatedSecret, byte[] psk, byte[] pskId, byte[] info) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
encapsulatedSecret - the argument of type byte[]psk - the argument of type byte[]pskId - the argument of type byte[]info - the argument of type byte[]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 itArgumentNullException - if the .NET member raises itpublic HpkeRecipient CreatePskRecipient(JCORefOut dupParam0, JCORefOut dupParam1, JCORefOut dupParam2, JCORefOut dupParam3) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
dupParam0 - the argument of type JCORefOutdupParam1 - the argument of type JCORefOutdupParam2 - the argument of type JCORefOutdupParam3 - the argument of type JCORefOutjava.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 itArgumentNullException - if the .NET member raises itpublic HpkeSender CreatePskSender(byte[] psk, byte[] pskId, JCORefOut encapsulatedSecret, byte[] info) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
psk - the argument of type byte[]pskId - the argument of type byte[]encapsulatedSecret - the argument of type JCORefOutinfo - the argument of type byte[]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 itArgumentNullException - if the .NET member raises itpublic HpkeRecipient CreateRecipient(byte[] encapsulatedSecret, byte[] info) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
encapsulatedSecret - the argument of type byte[]info - the argument of type byte[]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 itArgumentNullException - if the .NET member raises itpublic HpkeRecipient CreateRecipient(JCORefOut dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
dupParam0 - the argument of type JCORefOutdupParam1 - the argument of type JCORefOutjava.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 itArgumentNullException - if the .NET member raises itpublic static Hpke DeriveKey(HpkeSuite suite, byte[] ikm) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException, IndexOutOfRangeException, CryptographicException, UnreachableException
suite - the argument of type HpkeSuiteikm - the argument of type byte[]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 itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itCryptographicException - if the .NET member raises itUnreachableException - if the .NET member raises itpublic static Hpke DeriveKey(HpkeSuite dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException, IndexOutOfRangeException, CryptographicException, UnreachableException
dupParam0 - the argument of type HpkeSuitedupParam1 - the argument of type JCORefOutjava.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 itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itCryptographicException - if the .NET member raises itUnreachableException - if the .NET member raises itpublic void Dispose()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException
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 itArgumentNullException - if the .NET member raises itpublic byte[] ExportDecapsulationKey()
throws java.lang.Throwable,
PlatformNotSupportedException,
ObjectDisposedException,
ArrayTypeMismatchException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic byte[] ExportEncapsulationKey()
throws java.lang.Throwable,
PlatformNotSupportedException,
ObjectDisposedException,
ArrayTypeMismatchException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic static Hpke GenerateKey(HpkeSuite suite) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException, IndexOutOfRangeException, CryptographicException, UnreachableException
suite - the argument of type HpkeSuitejava.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 itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itCryptographicException - if the .NET member raises itUnreachableException - 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 HpkeSuite getSuite() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static Hpke ImportDecapsulationKey(HpkeSuite suite, byte[] source) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException, IndexOutOfRangeException, CryptographicException, UnreachableException
suite - the argument of type HpkeSuitesource - the argument of type byte[]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 itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itCryptographicException - if the .NET member raises itUnreachableException - if the .NET member raises itpublic static Hpke ImportDecapsulationKey(HpkeSuite dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException, IndexOutOfRangeException, CryptographicException, UnreachableException
dupParam0 - the argument of type HpkeSuitedupParam1 - the argument of type JCORefOutjava.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 itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itCryptographicException - if the .NET member raises itUnreachableException - if the .NET member raises itpublic static Hpke ImportEncapsulationKey(HpkeSuite suite, byte[] source) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException, IndexOutOfRangeException, CryptographicException, UnreachableException
suite - the argument of type HpkeSuitesource - the argument of type byte[]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 itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itCryptographicException - if the .NET member raises itUnreachableException - if the .NET member raises itpublic static Hpke ImportEncapsulationKey(HpkeSuite dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException, IndexOutOfRangeException, CryptographicException, UnreachableException
dupParam0 - the argument of type HpkeSuitedupParam1 - the argument of type JCORefOutjava.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 itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itCryptographicException - if the .NET member raises itUnreachableException - if the .NET member raises itpublic static boolean IsSupported(HpkeSuite suite) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException, IndexOutOfRangeException, MissingMethodException, TargetInvocationException, CryptographicException
suite - the argument of type HpkeSuitejava.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 itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic byte[] Open(byte[] encapsulatedSecret,
byte[] ciphertext,
byte[] associatedData,
byte[] info)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
ArgumentNullException
encapsulatedSecret - the argument of type byte[]ciphertext - the argument of type byte[]associatedData - the argument of type byte[]info - the argument of type byte[]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 itArgumentNullException - if the .NET member raises itpublic byte[] Open(JCORefOut dupParam0, JCORefOut dupParam1, JCORefOut dupParam2, JCORefOut dupParam3) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
dupParam0 - the argument of type JCORefOutdupParam1 - the argument of type JCORefOutdupParam2 - the argument of type JCORefOutdupParam3 - the argument of type JCORefOutjava.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 itArgumentNullException - if the .NET member raises itpublic void Seal(byte[] plaintext,
JCORefOut encapsulatedSecret,
JCORefOut ciphertext,
byte[] associatedData,
byte[] info)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
ArgumentNullException
plaintext - the argument of type byte[]encapsulatedSecret - the argument of type JCORefOutciphertext - the argument of type JCORefOutassociatedData - the argument of type byte[]info - the argument of type byte[]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 itArgumentNullException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying object