proxygen
fizz::JavaCryptoFactory Class Reference

#include <JavaCryptoFactory.h>

Inheritance diagram for fizz::JavaCryptoFactory:
fizz::Factory

Public Member Functions

 ~JavaCryptoFactory () override=default
 
std::shared_ptr< PeerCertmakePeerCert (Buf certData) const override
 
- Public Member Functions inherited from fizz::Factory
virtual ~Factory ()=default
 
virtual std::unique_ptr< PlaintextReadRecordLayermakePlaintextReadRecordLayer () const
 
virtual std::unique_ptr< PlaintextWriteRecordLayermakePlaintextWriteRecordLayer () const
 
virtual std::unique_ptr< EncryptedReadRecordLayermakeEncryptedReadRecordLayer (EncryptionLevel encryptionLevel) const
 
virtual std::unique_ptr< EncryptedWriteRecordLayermakeEncryptedWriteRecordLayer (EncryptionLevel encryptionLevel) const
 
virtual std::unique_ptr< KeySchedulermakeKeyScheduler (CipherSuite cipher) const
 
virtual std::unique_ptr< KeyDerivationmakeKeyDeriver (CipherSuite cipher) const
 
virtual std::unique_ptr< HandshakeContextmakeHandshakeContext (CipherSuite cipher) const
 
virtual std::unique_ptr< KeyExchangemakeKeyExchange (NamedGroup group) const
 
virtual std::unique_ptr< AeadmakeAead (CipherSuite cipher) const
 
virtual Random makeRandom () const
 
virtual uint32_t makeTicketAgeAdd () const
 
virtual std::string getHkdfPrefix () const
 

Detailed Description

This class instantiates objects using Java Crypto API instead of OpenSSL.

Definition at line 19 of file JavaCryptoFactory.h.

Constructor & Destructor Documentation

fizz::JavaCryptoFactory::~JavaCryptoFactory ( )
overridedefault

Member Function Documentation

std::shared_ptr<PeerCert> fizz::JavaCryptoFactory::makePeerCert ( Buf  certData) const
inlineoverridevirtual

Reimplemented from fizz::Factory.

Definition at line 23 of file JavaCryptoFactory.h.

References folly::gen::move.

23  {
24  if (certData->empty()) {
25  throw std::runtime_error("empty peer cert");
26  }
27 
28  return std::make_unique<JavaCryptoPeerCert>(std::move(certData));
29  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567

The documentation for this class was generated from the following file: