Create a JSch identity. This can be used to check whether the key is
encrypted.
(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)))
Comments top
No comments for make-identity. Log in to add a comment.