Package cz.metacentrum.perun.core.impl
Class SSHValidator
java.lang.Object
cz.metacentrum.perun.core.impl.SSHValidator
Validates SSH keys using predefined rules and the `ssh-keygen` tool as a final check
- Author:
- David Flor invalid input: '<'davidflor@seznam.cz>
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
validateSSH
(String sshKey) Checks whether is the SSH key in the correct format.
-
Method Details
-
validateSSH
Checks whether is the SSH key in the correct format.- Parameters:
sshKey
- SSH key to be checked- Throws:
SSHKeyNotValidException
- that is thrown whenever SSH key is not in correct format
-