Class JceX448Domain
- java.lang.Object
-
- org.bouncycastle.tls.crypto.impl.jcajce.JceX448Domain
-
- All Implemented Interfaces:
TlsECDomain
public class JceX448Domain extends java.lang.Object implements TlsECDomain
-
-
Field Summary
Fields Modifier and Type Field Description protected JcaTlsCrypto
crypto
-
Constructor Summary
Constructors Constructor Description JceX448Domain(JcaTlsCrypto crypto)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JceTlsSecret
calculateECDHAgreement(java.security.PrivateKey privateKey, java.security.PublicKey publicKey)
TlsAgreement
createECDH()
Return an agreement operator suitable for ephemeral EC Diffie-Hellman.java.security.PublicKey
decodePublicKey(byte[] encoding)
byte[]
encodePublicKey(java.security.PublicKey publicKey)
java.security.KeyPair
generateKeyPair()
-
-
-
Field Detail
-
crypto
protected final JcaTlsCrypto crypto
-
-
Constructor Detail
-
JceX448Domain
public JceX448Domain(JcaTlsCrypto crypto)
-
-
Method Detail
-
calculateECDHAgreement
public JceTlsSecret calculateECDHAgreement(java.security.PrivateKey privateKey, java.security.PublicKey publicKey) throws java.io.IOException
- Throws:
java.io.IOException
-
createECDH
public TlsAgreement createECDH()
Description copied from interface:TlsECDomain
Return an agreement operator suitable for ephemeral EC Diffie-Hellman.- Specified by:
createECDH
in interfaceTlsECDomain
- Returns:
- a key agreement operator.
-
decodePublicKey
public java.security.PublicKey decodePublicKey(byte[] encoding) throws java.io.IOException
- Throws:
java.io.IOException
-
encodePublicKey
public byte[] encodePublicKey(java.security.PublicKey publicKey) throws java.io.IOException
- Throws:
java.io.IOException
-
generateKeyPair
public java.security.KeyPair generateKeyPair()
-
-