summaryrefslogtreecommitdiff
path: root/chromium/net/android/android_private_key.cc
blob: 8f56085ad7ca37b30c2935db8110590f464048b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "net/android/android_private_key.h"

#include <vector>
#include "jni/AndroidPrivateKey_jni.h"

namespace net {
namespace android {

base::android::ScopedJavaLocalRef<jobject> GetKeyStore(
    jobject private_key_ref) {
  JNIEnv* env = base::android::AttachCurrentThread();
  return Java_AndroidPrivateKey_getKeyStore(
              env, private_key_ref);
}

bool RegisterAndroidPrivateKey(JNIEnv* env) {
  return RegisterNativesImpl(env);
}

}  // namespace android
}  // namespace net