summaryrefslogtreecommitdiffstats
path: root/net/android/android_private_key.h
blob: 9782a2d5e03898b5452ae0c23d167cb78dd95f54 (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
26
27
28
// 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.

#ifndef NET_ANDROID_ANDROID_PRIVATE_KEY_H
#define NET_ANDROID_ANDROID_PRIVATE_KEY_H

#include <jni.h>

#include "base/android/scoped_java_ref.h"
#include "base/basictypes.h"
#include "net/base/net_export.h"


namespace net {
namespace android {

// Returns the KeyStore associated with a given AndroidPrivateKey
NET_EXPORT base::android::ScopedJavaLocalRef<jobject> GetKeyStore(
    jobject private_key);

// Register JNI methods
NET_EXPORT bool RegisterAndroidPrivateKey(JNIEnv* env);

}  // namespace android
}  // namespace net

#endif  // NET_ANDROID_ANDROID_PRIVATE_KEY_H