@FunctionalInterface public interface KeyPairResourceLoader
KeyPair
s from text resourcesModifier and Type | Field and Description |
---|---|
static KeyPairResourceLoader |
EMPTY
An empty loader that never fails but always returns an empty list
|
static final KeyPairResourceLoader EMPTY
default Collection<KeyPair> loadKeyPairs(Path path, FilePasswordProvider passwordProvider, OpenOption... options) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
default Collection<KeyPair> loadKeyPairs(Path path, FilePasswordProvider passwordProvider, Charset cs, OpenOption... options) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
default Collection<KeyPair> loadKeyPairs(URL url, FilePasswordProvider passwordProvider) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
default Collection<KeyPair> loadKeyPairs(URL url, FilePasswordProvider passwordProvider, Charset cs) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
default Collection<KeyPair> loadKeyPairs(String resourceKey, FilePasswordProvider passwordProvider, String data) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
default Collection<KeyPair> loadKeyPairs(String resourceKey, FilePasswordProvider passwordProvider, InputStream stream) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
default Collection<KeyPair> loadKeyPairs(String resourceKey, FilePasswordProvider passwordProvider, InputStream stream, Charset cs) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
default Collection<KeyPair> loadKeyPairs(String resourceKey, FilePasswordProvider passwordProvider, Reader r) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
default Collection<KeyPair> loadKeyPairs(String resourceKey, FilePasswordProvider passwordProvider, BufferedReader r) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
Collection<KeyPair> loadKeyPairs(String resourceKey, FilePasswordProvider passwordProvider, List<String> lines) throws IOException, GeneralSecurityException
resourceKey
- A hint as to the origin of the text linespasswordProvider
- The FilePasswordProvider
to use
in case the data is encrypted - may be null
if no encrypted
data is expectedlines
- The List
of lines as read from the resourceKeyPair
s - may be null
/empty if none.
Note: the resource loader may decide to skip unknown lines if
more than one key pair type is encoded in itIOException
- If failed to process the linesGeneralSecurityException
- If failed to generate the keys from the
parsed dataCopyright © 2008–2018 The Apache Software Foundation. All rights reserved.