Lines Matching refs:X509Certificate
58 X509Certificate* cert;
66 Local<FunctionTemplate> X509Certificate::GetConstructorTemplate(
76 FIXED_ONE_BYTE_STRING(env->isolate(), "X509Certificate"));
105 bool X509Certificate::HasInstance(Environment* env, Local<Object> object) {
109 MaybeLocal<Object> X509Certificate::New(
117 MaybeLocal<Object> X509Certificate::New(
130 new X509Certificate(env, obj, std::move(cert), issuer_chain);
134 MaybeLocal<Object> X509Certificate::GetCert(
146 MaybeLocal<Object> X509Certificate::GetPeerCert(
173 void X509Certificate::Parse(const FunctionCallbackInfo<Value>& args) {
198 if (!X509Certificate::New(env, std::move(der)).ToLocal(&cert))
200 } else if (!X509Certificate::New(env, std::move(pem)).ToLocal(&cert)) {
211 X509Certificate* cert;
220 void X509Certificate::Subject(const FunctionCallbackInfo<Value>& args) {
224 void X509Certificate::Issuer(const FunctionCallbackInfo<Value>& args) {
228 void X509Certificate::SubjectAltName(const FunctionCallbackInfo<Value>& args) {
232 void X509Certificate::InfoAccess(const FunctionCallbackInfo<Value>& args) {
236 void X509Certificate::ValidFrom(const FunctionCallbackInfo<Value>& args) {
240 void X509Certificate::ValidTo(const FunctionCallbackInfo<Value>& args) {
247 X509Certificate* cert;
253 void X509Certificate::KeyUsage(const FunctionCallbackInfo<Value>& args) {
257 void X509Certificate::SerialNumber(const FunctionCallbackInfo<Value>& args) {
261 void X509Certificate::Raw(const FunctionCallbackInfo<Value>& args) {
265 void X509Certificate::PublicKey(const FunctionCallbackInfo<Value>& args) {
267 X509Certificate* cert;
271 // X509Certificate object is being created.
284 void X509Certificate::Pem(const FunctionCallbackInfo<Value>& args) {
286 X509Certificate* cert;
294 void X509Certificate::CheckCA(const FunctionCallbackInfo<Value>& args) {
295 X509Certificate* cert;
301 void X509Certificate::CheckHost(const FunctionCallbackInfo<Value>& args) {
303 X509Certificate* cert;
336 void X509Certificate::CheckEmail(const FunctionCallbackInfo<Value>& args) {
338 X509Certificate* cert;
363 void X509Certificate::CheckIP(const FunctionCallbackInfo<Value>& args) {
365 X509Certificate* cert;
386 void X509Certificate::CheckIssued(const FunctionCallbackInfo<Value>& args) {
388 X509Certificate* cert;
392 CHECK(X509Certificate::HasInstance(env, args[0].As<Object>()));
394 X509Certificate* issuer;
403 void X509Certificate::CheckPrivateKey(const FunctionCallbackInfo<Value>& args) {
404 X509Certificate* cert;
420 void X509Certificate::Verify(const FunctionCallbackInfo<Value>& args) {
421 X509Certificate* cert;
437 void X509Certificate::ToLegacy(const FunctionCallbackInfo<Value>& args) {
439 X509Certificate* cert;
447 void X509Certificate::GetIssuerCert(const FunctionCallbackInfo<Value>& args) {
448 X509Certificate* cert;
454 X509Certificate::X509Certificate(
467 ? X509Certificate::New(env, std::move(cert), issuer_chain)
469 : X509Certificate::New(env, std::move(cert))
471 issuer_cert_.reset(Unwrap<X509Certificate>(obj));
475 void X509Certificate::MemoryInfo(MemoryTracker* tracker) const {
480 X509Certificate::X509CertificateTransferData::Deserialize(
490 if (!X509Certificate::New(env, data_).ToLocal(&handle))
494 Unwrap<X509Certificate>(handle.As<Object>()));
498 BaseObject::TransferMode X509Certificate::GetTransferMode() const {
502 std::unique_ptr<worker::TransferData> X509Certificate::CloneForMessaging()
508 void X509Certificate::Initialize(Environment* env, Local<Object> target) {
509 SetMethod(env->context(), target, "parseX509", X509Certificate::Parse);
519 void X509Certificate::RegisterExternalReferences(
521 registry->Register(X509Certificate::Parse);