Class passphraseCredentialsProvider


  • public class passphraseCredentialsProvider
    extends org.eclipse.jgit.transport.CredentialsProvider
    CredentialsProvider that holds passphrase for SSH connection. Implementation taken from UsernamePasswordCredentialsProvider and modified to support SSH connections.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      Destroy the saved username and password..
      boolean get​(org.eclipse.jgit.transport.URIish uri, org.eclipse.jgit.transport.CredentialItem... items)  
      boolean isInteractive()  
      boolean supports​(org.eclipse.jgit.transport.CredentialItem... items)  
      • Methods inherited from class org.eclipse.jgit.transport.CredentialsProvider

        get, getDefault, isAnyNull, reset, setDefault
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • passphraseCredentialsProvider

        public passphraseCredentialsProvider​(java.lang.String password)
        Initialize the provider with a single username and password.
        Parameters:
        password - password according to credentials provider
      • passphraseCredentialsProvider

        public passphraseCredentialsProvider​(char[] password)
        Initialize the provider with a single username and password.
        Parameters:
        password - password according to credentials provider
    • Method Detail

      • isInteractive

        public boolean isInteractive()
        Specified by:
        isInteractive in class org.eclipse.jgit.transport.CredentialsProvider
      • supports

        public boolean supports​(org.eclipse.jgit.transport.CredentialItem... items)
        Specified by:
        supports in class org.eclipse.jgit.transport.CredentialsProvider
      • get

        public boolean get​(org.eclipse.jgit.transport.URIish uri,
                           org.eclipse.jgit.transport.CredentialItem... items)
                    throws org.eclipse.jgit.errors.UnsupportedCredentialItem
        Specified by:
        get in class org.eclipse.jgit.transport.CredentialsProvider
        Throws:
        org.eclipse.jgit.errors.UnsupportedCredentialItem
      • clear

        public void clear()
        Destroy the saved username and password..