Class Authentication


  • public class Authentication
    extends java.lang.Object
    Authentication
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String passphrase  
      private java.lang.String password
      Password associated with the login
      private java.lang.String privateKey  
      private java.lang.String username
      Username used to login to the host
    • Constructor Summary

      Constructors 
      Constructor Description
      Authentication​(java.lang.String userName, java.lang.String password)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPassphrase()
      Get the passphrase of the private key file.
      java.lang.String getPassword()
      Get the user's password which is used when connecting to the repository.
      java.lang.String getPrivateKey()
      Get the absolute path to the private key file.
      java.lang.String getUsername()
      Get the username used to access the repository.
      void setPassphrase​(java.lang.String passphrase)
      Set the passphrase of the private key file.
      void setPassword​(java.lang.String password)
      Set the user's password which is used when connecting to the repository.
      void setPrivateKey​(java.lang.String privateKey)
      Set the absolute path to private key file.
      void setUsername​(java.lang.String userName)
      Set username used to access the repository.
      • Methods inherited from class java.lang.Object

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

      • privateKey

        private java.lang.String privateKey
      • passphrase

        private java.lang.String passphrase
      • username

        private java.lang.String username
        Username used to login to the host
      • password

        private java.lang.String password
        Password associated with the login
    • Constructor Detail

      • Authentication

        public Authentication​(java.lang.String userName,
                              java.lang.String password)
    • Method Detail

      • getPassword

        public java.lang.String getPassword()
        Get the user's password which is used when connecting to the repository.
        Returns:
        password of user
      • setPassword

        public void setPassword​(java.lang.String password)
        Set the user's password which is used when connecting to the repository.
        Parameters:
        password - password of the user
      • getUsername

        public java.lang.String getUsername()
        Get the username used to access the repository.
        Returns:
        username at repository
      • setUsername

        public void setUsername​(java.lang.String userName)
        Set username used to access the repository.
        Parameters:
        userName - the username used to access repository
      • getPassphrase

        public java.lang.String getPassphrase()
        Get the passphrase of the private key file. The passphrase is used only when host/protocol supports authentication via exchange of private/public keys and private key was used for authentication.
        Returns:
        passphrase of the private key file
      • setPassphrase

        public void setPassphrase​(java.lang.String passphrase)
        Set the passphrase of the private key file.
        Parameters:
        passphrase - passphrase of the private key file
      • getPrivateKey

        public java.lang.String getPrivateKey()
        Get the absolute path to the private key file.
        Returns:
        absolute path to private key
      • setPrivateKey

        public void setPrivateKey​(java.lang.String privateKey)
        Set the absolute path to private key file.
        Parameters:
        privateKey - path to private key in local file system