comparison src/com/madgag/ssh/android/authagent/AndroidAuthAgent.java @ 0:0ce5cc452d02

initial version
author Carl Byington <carl@five-ten-sg.com>
date Thu, 22 May 2014 10:41:19 -0700
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:0ce5cc452d02
1 /*
2 * This file is auto-generated. DO NOT MODIFY.
3 * Original file: /home/roberto/development/madgag-ssh/ssh-android/src/main/java/com/madgag/ssh/android/authagent/AndroidAuthAgent.aidl
4 */
5 package com.madgag.ssh.android.authagent;
6 public interface AndroidAuthAgent extends android.os.IInterface {
7 /** Local-side IPC implementation stub class. */
8 public static abstract class Stub extends android.os.Binder implements com.madgag.ssh.android.authagent.AndroidAuthAgent {
9 private static final java.lang.String DESCRIPTOR = "com.madgag.ssh.android.authagent.AndroidAuthAgent";
10 /** Construct the stub at attach it to the interface. */
11 public Stub() {
12 this.attachInterface(this, DESCRIPTOR);
13 }
14 /**
15 * Cast an IBinder object into an com.madgag.ssh.android.authagent.AndroidAuthAgent interface,
16 * generating a proxy if needed.
17 */
18 public static com.madgag.ssh.android.authagent.AndroidAuthAgent asInterface(android.os.IBinder obj) {
19 if ((obj == null)) {
20 return null;
21 }
22
23 android.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR);
24
25 if (((iin != null) && (iin instanceof com.madgag.ssh.android.authagent.AndroidAuthAgent))) {
26 return ((com.madgag.ssh.android.authagent.AndroidAuthAgent)iin);
27 }
28
29 return new com.madgag.ssh.android.authagent.AndroidAuthAgent.Stub.Proxy(obj);
30 }
31 public android.os.IBinder asBinder() {
32 return this;
33 }
34 @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException {
35 switch (code) {
36 case INTERFACE_TRANSACTION: {
37 reply.writeString(DESCRIPTOR);
38 return true;
39 }
40
41 case TRANSACTION_getIdentities: {
42 data.enforceInterface(DESCRIPTOR);
43 java.util.Map _result = this.getIdentities();
44 reply.writeNoException();
45 reply.writeMap(_result);
46 return true;
47 }
48
49 case TRANSACTION_sign: {
50 data.enforceInterface(DESCRIPTOR);
51 byte[] _arg0;
52 _arg0 = data.createByteArray();
53 byte[] _arg1;
54 _arg1 = data.createByteArray();
55 byte[] _result = this.sign(_arg0, _arg1);
56 reply.writeNoException();
57 reply.writeByteArray(_result);
58 return true;
59 }
60 }
61
62 return super.onTransact(code, data, reply, flags);
63 }
64 private static class Proxy implements com.madgag.ssh.android.authagent.AndroidAuthAgent {
65 private android.os.IBinder mRemote;
66 Proxy(android.os.IBinder remote) {
67 mRemote = remote;
68 }
69 public android.os.IBinder asBinder() {
70 return mRemote;
71 }
72 public java.lang.String getInterfaceDescriptor() {
73 return DESCRIPTOR;
74 }
75 public java.util.Map getIdentities() throws android.os.RemoteException {
76 android.os.Parcel _data = android.os.Parcel.obtain();
77 android.os.Parcel _reply = android.os.Parcel.obtain();
78 java.util.Map _result;
79
80 try {
81 _data.writeInterfaceToken(DESCRIPTOR);
82 mRemote.transact(Stub.TRANSACTION_getIdentities, _data, _reply, 0);
83 _reply.readException();
84 java.lang.ClassLoader cl = (java.lang.ClassLoader)this.getClass().getClassLoader();
85 _result = _reply.readHashMap(cl);
86 }
87 finally {
88 _reply.recycle();
89 _data.recycle();
90 }
91
92 return _result;
93 }
94 public byte[] sign(byte[] publicKey, byte[] data) throws android.os.RemoteException {
95 android.os.Parcel _data = android.os.Parcel.obtain();
96 android.os.Parcel _reply = android.os.Parcel.obtain();
97 byte[] _result;
98
99 try {
100 _data.writeInterfaceToken(DESCRIPTOR);
101 _data.writeByteArray(publicKey);
102 _data.writeByteArray(data);
103 mRemote.transact(Stub.TRANSACTION_sign, _data, _reply, 0);
104 _reply.readException();
105 _result = _reply.createByteArray();
106 }
107 finally {
108 _reply.recycle();
109 _data.recycle();
110 }
111
112 return _result;
113 }
114 }
115 static final int TRANSACTION_getIdentities = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
116 static final int TRANSACTION_sign = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
117 }
118 public java.util.Map getIdentities() throws android.os.RemoteException;
119 public byte[] sign(byte[] publicKey, byte[] data) throws android.os.RemoteException;
120 }