Class SshUtil


  • public class SshUtil
    extends Object
    Class providing utilities for parsing of keys in OpenSSH format
    • Constructor Detail

      • SshUtil

        public SshUtil()
    • Method Detail

      • parsePemOpenSSHContent

        public static Iterator<PemEntry<?>> parsePemOpenSSHContent​(org.wildfly.common.iteration.CodePointIterator pemContent,
                                                                   org.apache.sshd.common.config.keys.FilePasswordProvider passphraseProvider)
                                                            throws IllegalArgumentException
        Iterate over the contents of a key file in OpenSSH format, returning each entry in sequence.
        Parameters:
        pemContent - the code point iterator over the content (must not be null)
        passphraseProvider - provides the passphrase used to decrypt the private key(may be null)
        Returns:
        the iterator (not null)
        Throws:
        IllegalArgumentException - if there is a problem with the data or the key