Lines Matching defs:key
169 * Returns the encryption key or {@code null} if it is not present.
176 * Sets the encryption method and the encryption key. The field will be
179 public void setEncryption(String method, String key) {
180 mFields.setEncryption(method, key);
385 * has three parts: a key, a delimiter, and a value. Delimiters are special
439 * Returns the encryption key or {@code null} if it is not present.
451 * Sets the encryption method and the encryption key. The field will be
454 public void setEncryption(String method, String key) {
455 set("k", '=', (method == null || key == null) ?
456 method : method + ':' + key);
547 * Finds the key with the given prefix and returns its suffix.
566 * Returns the index of the key.
568 private int find(String key, char delimiter) {
569 int length = key.length();
572 if (line.startsWith(key) && (line.length() == length ||
581 * Sets the key with the value or removes the key if the value is
584 private void set(String key, char delimiter, String value) {
585 int index = find(key, delimiter);
588 key = key + delimiter + value;
591 mLines.add(key);
593 mLines.set(index, key);
601 * Returns the value of the key.
603 private String get(String key, char delimiter) {
604 int index = find(key, delimiter);
609 int length = key.length();