Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (48 sloc) 2.92 KB
//
// Generated by JavaToPas v1.5 20140918 - 093142
////////////////////////////////////////////////////////////////////////////////
unit android.security.KeyChain;
interface
uses
AndroidAPI.JNIBridge,
Androidapi.JNI.JavaTypes,
android.content.ClipData,
android.app.Activity,
android.security.KeyChainAliasCallback,
java.security.Principal,
java.security.PrivateKey,
Androidapi.JNI.GraphicsContentViewText,
java.security.cert.X509Certificate;
type
JKeyChain = interface;
JKeyChainClass = interface(JObjectClass)
['{AC40ACD8-576F-4B5B-9771-D02D38A368F2}']
function _GetACTION_STORAGE_CHANGED : JString; cdecl; // A: $19
function _GetEXTRA_CERTIFICATE : JString; cdecl; // A: $19
function _GetEXTRA_NAME : JString; cdecl; // A: $19
function _GetEXTRA_PKCS12 : JString; cdecl; // A: $19
function createInstallIntent : JIntent; cdecl; // ()Landroid/content/Intent; A: $9
function getCertificateChain(context : JContext; alias : JString) : TJavaArray<JX509Certificate>; cdecl;// (Landroid/content/Context;Ljava/lang/String;)[Ljava/security/cert/X509Certificate; A: $9
function getPrivateKey(context : JContext; alias : JString) : JPrivateKey; cdecl;// (Landroid/content/Context;Ljava/lang/String;)Ljava/security/PrivateKey; A: $9
function init : JKeyChain; cdecl; // ()V A: $1
function isBoundKeyAlgorithm(algorithm : JString) : boolean; cdecl; // (Ljava/lang/String;)Z A: $9
function isKeyAlgorithmSupported(algorithm : JString) : boolean; cdecl; // (Ljava/lang/String;)Z A: $9
procedure choosePrivateKeyAlias(activity : JActivity; response : JKeyChainAliasCallback; keyTypes : TJavaArray<JString>; issuers : TJavaArray<JPrincipal>; host : JString; port : Integer; alias : JString) ; cdecl;// (Landroid/app/Activity;Landroid/security/KeyChainAliasCallback;[Ljava/lang/String;[Ljava/security/Principal;Ljava/lang/String;ILjava/lang/String;)V A: $9
property ACTION_STORAGE_CHANGED : JString read _GetACTION_STORAGE_CHANGED; // Ljava/lang/String; A: $19
property EXTRA_CERTIFICATE : JString read _GetEXTRA_CERTIFICATE; // Ljava/lang/String; A: $19
property EXTRA_NAME : JString read _GetEXTRA_NAME; // Ljava/lang/String; A: $19
property EXTRA_PKCS12 : JString read _GetEXTRA_PKCS12; // Ljava/lang/String; A: $19
end;
[JavaSignature('android/security/KeyChain')]
JKeyChain = interface(JObject)
['{887D1FAB-2232-48B8-A4AD-3A12E4A5E2B2}']
end;
TJKeyChain = class(TJavaGenericImport<JKeyChainClass, JKeyChain>)
end;
const
TJKeyChainEXTRA_NAME = 'name';
TJKeyChainEXTRA_CERTIFICATE = 'CERT';
TJKeyChainEXTRA_PKCS12 = 'PKCS12';
TJKeyChainACTION_STORAGE_CHANGED = 'android.security.STORAGE_CHANGED';
implementation
end.