byte[] getKeyTypeName(){ return kpair.getKeyTypeName();} public int getKeyType(){return kpair.getKeyType();}
byte[] getKeyTypeName() { return kpair.getKeyTypeName(); }
byte[] getKeyTypeName(){ return kpair.getKeyTypeName();} public int getKeyType(){return kpair.getKeyType();}
byte[] getKeyTypeName(){ return kpair.getKeyTypeName();} public int getKeyType(){return kpair.getKeyType();}
/** * Returns the name of the key algorithm. * @return "ssh-rsa" or "ssh-dss" */ public String getAlgName(){ return new String(kpair.getKeyTypeName()); }
/** * Returns the name of the key algorithm. * @return "ssh-rsa" or "ssh-dss" */ public String getAlgName(){ return new String(kpair.getKeyTypeName()); }
/** * Returns the name of the key algorithm. * @return "ssh-rsa" or "ssh-dss" */ public String getAlgName(){ return new String(kpair.getKeyTypeName()); }
/** * Returns the name of the key algorithm. * * @return "ssh-rsa" or "ssh-dss" */ @Override public String getAlgName() { return new String(kpair.getKeyTypeName()); }
/** * Returns the name of the key algorithm. * @return "ssh-rsa" or "ssh-dss" */ public String getAlgName(){ byte[] name = kpair.getKeyTypeName(); try { return new String(name, "UTF-8"); } catch (UnsupportedEncodingException e){ return new String(name); } }
public void writePublicKey(java.io.OutputStream out, String comment){ byte[] pubblob=getPublicKeyBlob(); byte[] pub=Util.toBase64(pubblob, 0, pubblob.length); try{ out.write(getKeyTypeName()); out.write(space); out.write(pub, 0, pub.length); out.write(space); out.write(comment.getBytes()); out.write(cr); } catch(Exception e){ } }
/** * Writes the public key with the specified comment to the output stream. * @param out output stream * @param comment comment */ public void writePublicKey(java.io.OutputStream out, String comment){ byte[] pubblob=getPublicKeyBlob(); byte[] pub=Util.toBase64(pubblob, 0, pubblob.length); try{ out.write(getKeyTypeName()); out.write(space); out.write(pub, 0, pub.length); out.write(space); out.write(Util.str2byte(comment)); out.write(cr); } catch(Exception e){ } }
/** * Writes the public key with the specified comment to the output stream. * @param out output stream * @param comment comment */ public void writePublicKey(java.io.OutputStream out, String comment){ byte[] pubblob=getPublicKeyBlob(); byte[] pub=Util.toBase64(pubblob, 0, pubblob.length); try{ out.write(getKeyTypeName()); out.write(space); out.write(pub, 0, pub.length); out.write(space); out.write(Util.str2byte(comment)); out.write(cr); } catch(Exception e){ } }
/** * Writes the public key with the specified comment to the output stream. * @param out output stream * @param comment comment */ public void writePublicKey(java.io.OutputStream out, String comment){ byte[] pubblob=getPublicKeyBlob(); byte[] pub=Util.toBase64(pubblob, 0, pubblob.length); try{ out.write(getKeyTypeName()); out.write(space); out.write(pub, 0, pub.length); out.write(space); out.write(Util.str2byte(comment)); out.write(cr); } catch(Exception e){ } }
/** * Writes the public key with the specified comment to the output stream. * * @param out output stream * @param comment comment */ public void writePublicKey(java.io.OutputStream out, String comment) { byte[] pubblob = getPublicKeyBlob(); byte[] pub = Util.toBase64(pubblob, 0, pubblob.length); try { out.write(getKeyTypeName()); out.write(space); out.write(pub, 0, pub.length); out.write(space); out.write(Util.str2byte(comment)); out.write(cr); } catch (Exception e) { } }