Class SVNPasswordAuthentication


  • public class SVNPasswordAuthentication
    extends SVNAuthentication
    The SVNPasswordAuthentication class represents a simple user credential pair - a username and password.

    To obtain a password credential, specify the PASSWORD kind to credentials getter method of ISVNAuthenticationManager: getFirstAuthentication(), getNextAuthentication().

    Since:
    1.2
    Version:
    1.3
    Author:
    TMate Software Ltd.
    • Constructor Detail

      • SVNPasswordAuthentication

        public SVNPasswordAuthentication​(java.lang.String userName,
                                         java.lang.String password,
                                         boolean storageAllowed)
        Creates a password user credential object given a username and password.
        Parameters:
        userName - the name of a user to authenticate
        password - the user's password
        storageAllowed - if true then this credential is allowed to be stored in the global auth cache, otherwise not
      • SVNPasswordAuthentication

        public SVNPasswordAuthentication​(java.lang.String userName,
                                         java.lang.String password,
                                         boolean storageAllowed,
                                         SVNURL url,
                                         boolean isPartial)
        Creates a password user credential object given a username and password.
        Parameters:
        userName - the name of a user to authenticate
        password - the user's password
        storageAllowed - if true then this credential is allowed to be stored in the global auth cache, otherwise not
        url - url these credentials are applied to
        Since:
        1.3.1
    • Method Detail

      • newInstance

        public static SVNPasswordAuthentication newInstance​(java.lang.String userName,
                                                            char[] password,
                                                            boolean storageAllowed,
                                                            SVNURL url,
                                                            boolean isPartial)
        Creates a password user credential object given a username and password.
        Parameters:
        userName - the name of a user to authenticate
        password - the user's password
        storageAllowed - if true then this credential is allowed to be stored in the global auth cache, otherwise not
        url - url these credentials are applied to
        isPartial - whether this object only contains part of credentials information
        Since:
        1.8.9
      • getPassword

        public java.lang.String getPassword()
        Deprecated.
        Returns password.
        Returns:
        password
      • getPasswordValue

        public char[] getPasswordValue()
        Returns password.
        Returns:
        password
        Since:
        1.8.9