public static SshPublicKeyFile parse ( byte [ ] formattedkey ) throws IOException { try { try { return new OpenSSHPublicKeyFile ( formattedkey ) ; } catch ( IOException ex ) { try { return new SECSHPublicKeyFile ( formattedkey ) ; } catch ( IOException ex2 ) { throw new IOException ( "Unable to parse key, format could not be identified" ) ; } } } catch ( OutOfMemoryError ex1 ) { throw new IOException ( "An error occurred parsing a public key file! Is the file corrupt?" ) ; } }
Parse a formatted public key and return a file representation .