Lines Matching refs:key

33  * assumes that private and secret key bytes are available and would
74 private byte[] get(byte[] key) {
75 ArrayList<byte[]> values = execute('g', key);
79 public byte[] get(String key) {
80 return get(getKeyBytes(key));
83 private boolean put(byte[] key, byte[] value) {
84 execute('i', key, value);
88 public boolean put(String key, byte[] value) {
89 return put(getKeyBytes(key), value);
92 private boolean delete(byte[] key) {
93 execute('d', key);
97 public boolean delete(String key) {
98 return delete(getKeyBytes(key));
101 private boolean contains(byte[] key) {
102 execute('e', key);
106 public boolean contains(String key) {
107 return contains(getKeyBytes(key));
160 private boolean generate(byte[] key) {
161 execute('a', key);
165 public boolean generate(String key) {
166 return generate(getKeyBytes(key));
169 private boolean importKey(byte[] keyName, byte[] key) {
170 execute('m', keyName, key);
174 public boolean importKey(String keyName, byte[] key) {
175 return importKey(getKeyBytes(keyName), key);
178 private byte[] getPubkey(byte[] key) {
179 ArrayList<byte[]> values = execute('b', key);
183 public byte[] getPubkey(String key) {
184 return getPubkey(getKeyBytes(key));
187 private boolean delKey(byte[] key) {
188 execute('k', key);
192 public boolean delKey(String key) {
193 return delKey(getKeyBytes(key));
201 public byte[] sign(String key, byte[] data) {
202 return sign(getKeyBytes(key), data);
210 public boolean verify(String key, byte[] data, byte[] signature) {
211 return verify(getKeyBytes(key), data, signature);
214 private boolean grant(byte[] key, byte[] uid) {
215 execute('x', key, uid);
219 public boolean grant(String key, int uid) {
220 return grant(getKeyBytes(key), getUidBytes(uid));
223 private boolean ungrant(byte[] key, byte[] uid) {
224 execute('y', key, uid);
228 public boolean ungrant(String key, int uid) {
229 return ungrant(getKeyBytes(key), getUidBytes(uid));
232 private long getmtime(byte[] key) {
233 final ArrayList<byte[]> values = execute('c', key);
242 * Returns the last modification time of the key in milliseconds since the
243 * epoch. Will return -1L if the key could not be found or other error.
245 public long getmtime(String key) {
246 return getmtime(getKeyBytes(key));
314 * ModifiedUtf8 is used for key encoding to match the