/** * Returns the public-key blob. * @return the public-key blob */ public byte[] getPublicKeyBlob(){ return kpair.getPublicKeyBlob(); }
/** * Returns the public-key blob. * @return the public-key blob */ public byte[] getPublicKeyBlob(){ return kpair.getPublicKeyBlob(); }
/** * Returns the public-key blob. * @return the public-key blob */ public byte[] getPublicKeyBlob(){ return kpair.getPublicKeyBlob(); }
public byte[] getPublicKeyBlob(){ return kpair.getPublicKeyBlob(); }
/** * Returns the public-key blob. * @return the public-key blob */ public byte[] getPublicKeyBlob(){ return kpair.getPublicKeyBlob(); }
/** * Returns the public-key blob. * * @return the public-key blob */ @Override public byte[] getPublicKeyBlob() { return kpair.getPublicKeyBlob(); }
public byte[] getPublicKeyBlob(){ byte[] foo=super.getPublicKeyBlob(); if(foo!=null) return foo; if(pub_array==null) return null; byte[][] tmp = new byte[3][]; tmp[0] = sshrsa; tmp[1] = pub_array; tmp[2] = n_array; return Buffer.fromBytes(tmp).buffer; }
public byte[] getPublicKeyBlob(){ byte[] foo=super.getPublicKeyBlob(); if(foo!=null) return foo; if(pub_array==null) return null; byte[][] tmp = new byte[3][]; tmp[0] = sshrsa; tmp[1] = pub_array; tmp[2] = n_array; return Buffer.fromBytes(tmp).buffer; }
public byte[] getPublicKeyBlob(){ byte[] foo=super.getPublicKeyBlob(); if(foo!=null) return foo; if(P_array==null) return null; byte[][] tmp = new byte[5][]; tmp[0] = sshdss; tmp[1] = P_array; tmp[2] = Q_array; tmp[3] = G_array; tmp[4] = pub_array; return Buffer.fromBytes(tmp).buffer; }
public byte[] getPublicKeyBlob(){ byte[] foo=super.getPublicKeyBlob(); if(foo!=null) return foo; if(pub_array==null) return null; byte[][] tmp = new byte[3][]; tmp[0] = sshrsa; tmp[1] = pub_array; tmp[2] = n_array; return Buffer.fromBytes(tmp).buffer; }
public byte[] getPublicKeyBlob(){ byte[] foo=super.getPublicKeyBlob(); if(foo!=null) return foo; if(P_array==null) return null; byte[][] tmp = new byte[5][]; tmp[0] = sshdss; tmp[1] = P_array; tmp[2] = Q_array; tmp[3] = G_array; tmp[4] = pub_array; return Buffer.fromBytes(tmp).buffer; }
public byte[] getPublicKeyBlob() { byte[] foo = super.getPublicKeyBlob(); if (foo != null) return foo; if (P_array == null) return null; byte[][] tmp = new byte[5][]; tmp[0] = sshdss; tmp[1] = P_array; tmp[2] = Q_array; tmp[3] = G_array; tmp[4] = pub_array; return Buffer.fromBytes(tmp).buffer; }
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){ } }
/** * Returns the finger-print of the public key. * * @return finger print */ public String getFingerPrint() { if (hash == null) hash = genHash(); byte[] kblob = getPublicKeyBlob(); if (kblob == null) return null; return Util.getFingerPrint(hash, kblob); }
/** * Returns the finger-print of the public key. * @return finger print */ public String getFingerPrint(){ if(hash==null) hash=genHash(); byte[] kblob=getPublicKeyBlob(); if(kblob==null) return null; return Util.getFingerPrint(hash, kblob); }
/** * Returns the finger-print of the public key. * @return finger print */ public String getFingerPrint(){ if(hash==null) hash=genHash(); byte[] kblob=getPublicKeyBlob(); if(kblob==null) return null; return Util.getFingerPrint(hash, kblob); }
/** * Creates and returns a fingerprint of the public key, * i.e. the hexadecimal representation of the MD5 hash of * the public key. */ public String getFingerPrint(){ if(hash==null) hash=genHash(); byte[] kblob=getPublicKeyBlob(); if(kblob==null) return null; return Util.getFingerPrint(hash, kblob); }
public String getFingerPrint(){ if(hash==null) hash=genHash(); byte[] kblob=getPublicKeyBlob(); if(kblob==null) return null; return getKeySize()+" "+Util.getFingerPrint(hash, kblob); }
public SshKeyPair toKeyPair() throws SshException { if (isEncrypted()) { throw new SshException(SshException.PASSPHRASE_REQUIRED, "Key is currently encrypyted. Please decrypt before changing passphrase."); } System.out.println("KEYBITS: " + kpair.getPublicKeyBlob().length); return new SshKeyPair(new JschPublicKey(kpair, kpair.getPublicKeyBlob().length), new JschPrivateKey(kpair)); }
public byte[] getPublicKeyBlob(){ byte[] foo=super.getPublicKeyBlob(); if(foo!=null) return foo; if(pub_array==null) return null; Buffer buf=new Buffer(sshrsa.length+4+ pub_array.length+4+ n_array.length+4); buf.putString(sshrsa); buf.putString(pub_array); buf.putString(n_array); return buf.buffer; }