Class SSHValidator

java.lang.Object
cz.metacentrum.perun.core.impl.SSHValidator

public class SSHValidator extends Object
Validates SSH keys using predefined rules and the `ssh-keygen` tool as a final check
Author:
David Flor <davidflor@seznam.cz>
  • Method Details

    • validateSSH

      public static void validateSSH(String sshKey) throws SSHKeyNotValidException
      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