Class JceTlsMLKemDomain
- java.lang.Object
-
- org.bouncycastle.tls.crypto.impl.jcajce.JceTlsMLKemDomain
-
- All Implemented Interfaces:
TlsKemDomain
public class JceTlsMLKemDomain extends java.lang.Object implements TlsKemDomain
-
-
Field Summary
Fields Modifier and Type Field Description protected JcaTlsCryptocryptoprotected booleanisServerprotected java.lang.StringkemName
-
Constructor Summary
Constructors Constructor Description JceTlsMLKemDomain(JcaTlsCrypto crypto, TlsKemConfig kemConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JceTlsSecretadoptLocalSecret(byte[] secret)TlsAgreementcreateKem()JceTlsSecretdecapsulate(java.security.PrivateKey privateKey, byte[] ciphertext)java.security.PublicKeydecodePublicKey(byte[] encoding)org.bouncycastle.jcajce.SecretKeyWithEncapsulationencapsulate(java.security.PublicKey publicKey)byte[]encodePublicKey(java.security.PublicKey publicKey)java.security.KeyPairgenerateKeyPair()booleanisServer()
-
-
-
Field Detail
-
crypto
protected final JcaTlsCrypto crypto
-
kemName
protected final java.lang.String kemName
-
isServer
protected final boolean isServer
-
-
Constructor Detail
-
JceTlsMLKemDomain
public JceTlsMLKemDomain(JcaTlsCrypto crypto, TlsKemConfig kemConfig)
-
-
Method Detail
-
adoptLocalSecret
public JceTlsSecret adoptLocalSecret(byte[] secret)
-
createKem
public TlsAgreement createKem()
- Specified by:
createKemin interfaceTlsKemDomain
-
decapsulate
public JceTlsSecret decapsulate(java.security.PrivateKey privateKey, byte[] ciphertext)
-
decodePublicKey
public java.security.PublicKey decodePublicKey(byte[] encoding) throws java.io.IOException- Throws:
java.io.IOException
-
encapsulate
public org.bouncycastle.jcajce.SecretKeyWithEncapsulation encapsulate(java.security.PublicKey publicKey)
-
encodePublicKey
public byte[] encodePublicKey(java.security.PublicKey publicKey) throws java.io.IOException- Throws:
java.io.IOException
-
generateKeyPair
public java.security.KeyPair generateKeyPair()
-
isServer
public boolean isServer()
-
-