Package org.wildfly.security.ssh.util
Class SshUtil
java.lang.Object
org.wildfly.security.ssh.util.SshUtil
Class providing utilities for parsing of keys in OpenSSH format
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparsePemOpenSSHContent(org.wildfly.common.iteration.CodePointIterator pemContent, org.apache.sshd.common.config.keys.FilePasswordProvider passphraseProvider) Iterate over the contents of a key file in OpenSSH format, returning each entry in sequence.
-
Field Details
-
OPENSSH_PRIVATE_KEY_FORMAT
- See Also:
-
-
Constructor Details
-
SshUtil
public SshUtil()
-
-
Method Details
-
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 benull)passphraseProvider- provides the passphrase used to decrypt the private key(may benull)- Returns:
- the iterator (not
null) - Throws:
IllegalArgumentException- if there is a problem with the data or the key
-