@FunctionalInterface public interface KeyPairResourceLoader
KeyPairs from text resources| Modifier 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
IOExceptionGeneralSecurityExceptiondefault Collection<KeyPair> loadKeyPairs(Path path, FilePasswordProvider passwordProvider, Charset cs, OpenOption... options) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptiondefault Collection<KeyPair> loadKeyPairs(URL url, FilePasswordProvider passwordProvider) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptiondefault Collection<KeyPair> loadKeyPairs(URL url, FilePasswordProvider passwordProvider, Charset cs) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptiondefault Collection<KeyPair> loadKeyPairs(String resourceKey, FilePasswordProvider passwordProvider, String data) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptiondefault Collection<KeyPair> loadKeyPairs(String resourceKey, FilePasswordProvider passwordProvider, InputStream stream) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptiondefault Collection<KeyPair> loadKeyPairs(String resourceKey, FilePasswordProvider passwordProvider, InputStream stream, Charset cs) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptiondefault Collection<KeyPair> loadKeyPairs(String resourceKey, FilePasswordProvider passwordProvider, Reader r) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptiondefault Collection<KeyPair> loadKeyPairs(String resourceKey, FilePasswordProvider passwordProvider, BufferedReader r) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionCollection<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 resourceKeyPairs - 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–2017 The Apache Software Foundation. All rights reserved.