aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PassphraseCacheInterface.java
blob: ae1b94a3485b42aa2aa9be09f949c2d3b7fbb629 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package org.sufficientlysecure.keychain.pgp;

public interface PassphraseCacheInterface {
    public static class NoSecretKeyException extends Exception {
        public NoSecretKeyException() {
        }
    }

    public String getCachedPassphrase(long subKeyId) throws NoSecretKeyException;

    public String getCachedPassphrase(long masterKeyId, long subKeyId) throws NoSecretKeyException;

}