proxygen
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
JavaCryptoPeerCert.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018-present, Facebook, Inc.
3
* All rights reserved.
4
*
5
* This source code is licensed under the BSD-style license found in the
6
* LICENSE file in the root directory of this source tree.
7
*/
8
9
#pragma once
10
11
#include <
fizz/crypto/signature/Signature.h
>
12
#include <
fizz/protocol/Certificate.h
>
13
#include <
fizz/record/Types.h
>
14
#include <
folly/io/async/AsyncTransportCertificate.h
>
15
#include <jni.h>
16
17
namespace
fizz
{
18
19
using
Cert
=
folly::AsyncTransportCertificate
;
20
21
class
JavaCryptoPeerCert
:
public
PeerCert
{
22
public
:
23
static
void
onLoad
(JNIEnv* env);
24
25
explicit
JavaCryptoPeerCert
(
Buf
certData);
26
27
~JavaCryptoPeerCert
()
override
=
default
;
28
29
// Returns the full Distinguished Name of the certificate
30
std::string
getIdentity
()
const override
;
31
32
void
verify
(
33
SignatureScheme
scheme,
34
CertificateVerifyContext
context
,
35
folly::ByteRange
toBeSigned,
36
folly::ByteRange
signature)
const override
;
37
38
folly::ssl::X509UniquePtr
getX509
()
const override
;
39
40
private
:
41
jobject
jobject_
;
42
};
43
44
}
// namespace fizz
Types.h
folly::ssl::X509UniquePtr
std::unique_ptr< X509, X509Deleter > X509UniquePtr
Definition:
OpenSSLPtrTypes.h:44
Signature.h
Certificate.h
fizz::PeerCert
Definition:
Certificate.h:64
context
context
Definition:
CMakeCache.txt:563
fizz::SignatureScheme
SignatureScheme
Definition:
Types.h:257
fizz::JavaCryptoPeerCert
Definition:
JavaCryptoPeerCert.h:21
AsyncTransportCertificate.h
fizz
Definition:
Actions.h:16
folly::AsyncTransportCertificate
Definition:
AsyncTransportCertificate.h:28
folly::Range< const unsigned char * >
fizz::CertificateVerifyContext
CertificateVerifyContext
Definition:
Certificate.h:20
fizz::JavaCryptoPeerCert::verify
void verify(SignatureScheme scheme, CertificateVerifyContext context, folly::ByteRange toBeSigned, folly::ByteRange signature) const override
Definition:
JavaCryptoPeerCert.cpp:56
string
const char * string
Definition:
Conv.cpp:212
fizz::Buf
std::unique_ptr< folly::IOBuf > Buf
Definition:
Types.h:22
fizz::JavaCryptoPeerCert::JavaCryptoPeerCert
JavaCryptoPeerCert(Buf certData)
Definition:
JavaCryptoPeerCert.cpp:30
fizz::JavaCryptoPeerCert::getIdentity
std::string getIdentity() const override
Definition:
JavaCryptoPeerCert.cpp:42
fizz::JavaCryptoPeerCert::jobject_
jobject jobject_
Definition:
JavaCryptoPeerCert.h:41
fizz::JavaCryptoPeerCert::~JavaCryptoPeerCert
~JavaCryptoPeerCert() override=default
fizz::JavaCryptoPeerCert::onLoad
static void onLoad(JNIEnv *env)
Definition:
JavaCryptoPeerCert.cpp:21
fizz::JavaCryptoPeerCert::getX509
folly::ssl::X509UniquePtr getX509() const override
Definition:
JavaCryptoPeerCert.cpp:88
proxygen
fizz
fizz
extensions
javacrypto
JavaCryptoPeerCert.h
Generated by
1.8.11