Namespaces

 
0.2.0-SNAPSHOT permalink Arrow_down_16x16

make-identity

clj-ssh.ssh

  • (make-identity private-key-path public-key-path)
  • (make-identity agent private-key-path public-key-path)
Create a JSch identity. This can be used to check whether the key is
encrypted.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clj_ssh/ssh.clj:132 top

(defn #^Identity make-identity
  "Create a JSch identity.  This can be used to check whether the key is
   encrypted."
  ([private-key-path public-key-path]
     (make-identity *ssh-agent* private-key-path public-key-path))
  ([#^JSch agent #^String private-key-path #^String public-key-path]
     (logging/trace
      (format "Make identity %s %s" private-key-path public-key-path))
     (call-method
      com.jcraft.jsch.IdentityFile 'newInstance [String String JSch]
      nil private-key-path public-key-path agent)))
Vars in clj-ssh.ssh/make-identity: agent defn format
Used in 0 other vars

Comments top

No comments for make-identity. Log in to add a comment.