Enum GitBasicAuthPolicy

    • Enum Constant Detail

      • HTTP

        public static final GitBasicAuthPolicy HTTP
        Only the HTTP password is accepted when doing Git over HTTP and REST API requests.
      • LDAP

        public static final GitBasicAuthPolicy LDAP
        Only the LDAP password is allowed when doing Git over HTTP and REST API requests.
      • HTTP_LDAP

        public static final GitBasicAuthPolicy HTTP_LDAP
        The password in the request is first checked against the HTTP password and, if it does not match, it is then validated against the LDAP password.
      • OAUTH

        public static final GitBasicAuthPolicy OAUTH
        Only the `OAUTH` authentication is allowed when doing Git over HTTP and REST API requests.
    • Method Detail

      • values

        public static GitBasicAuthPolicy[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (GitBasicAuthPolicy c : GitBasicAuthPolicy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static GitBasicAuthPolicy valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null