Package org.wildfly.security.ssh.util
Class SshUtil
- java.lang.Object
-
- org.wildfly.security.ssh.util.SshUtil
-
public class SshUtil extends Object
Class providing utilities for parsing of keys in OpenSSH format
-
-
Field Summary
Fields Modifier and Type Field Description static StringOPENSSH_PRIVATE_KEY_FORMAT
-
Constructor Summary
Constructors Constructor Description SshUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Iterator<PemEntry<?>>parsePemOpenSSHContent(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 Detail
-
OPENSSH_PRIVATE_KEY_FORMAT
public static final String OPENSSH_PRIVATE_KEY_FORMAT
- See Also:
- Constant Field Values
-
-
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 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
-
-