1 19 20 package com.sslexplorer.security.pki; 21 22 23 28 public interface SshPrivateKeyFormat { 29 36 public boolean isPassphraseProtected(byte[] formattedKey); 37 38 45 public boolean isFormatted(byte[] formattedKey); 46 47 57 public byte[] decryptKeyblob(byte[] formattedKey, String passphrase) 58 throws InvalidKeyException; 59 60 70 public byte[] encryptKeyblob(byte[] keyblob, String passphrase) 71 throws InvalidKeyException; 72 73 80 public boolean supportsAlgorithm(String algorithm); 81 82 87 public String getFormatType(); 88 } 89 | Popular Tags |