]> git.argeo.org Git - lgpl/argeo-commons.git/blob - keyring/Keyring.java
Prepare next development cycle
[lgpl/argeo-commons.git] / keyring / Keyring.java
1 package org.argeo.api.cms.keyring;
2
3 import java.io.InputStream;
4
5 /**
6 * Access to private (typically encrypted) data. The keyring is responsible for
7 * retrieving the necessary credentials. <b>Experimental. This API may
8 * change.</b>
9 */
10 public interface Keyring {
11 /**
12 * Returns the confidential information as chars. Must ask for it if it is
13 * not stored.
14 */
15 public char[] getAsChars(String path);
16
17 /**
18 * Returns the confidential information as a stream. Must ask for it if it
19 * is not stored.
20 */
21 public InputStream getAsStream(String path);
22
23 public void set(String path, char[] arr);
24
25 public void set(String path, InputStream in);
26 }