core/src/main/java/org/apache/commons/vfs2/util/UserAuthenticatorUtils.java
/**
     * if there is a authenticator the authentication will take place, else null will be reutrned.
     * @param auth The UserAuthenticator.
     * @param authenticatorTypes An array of types describing the data to be retrieved.
     * @return A UserAuthenticationData object containing the data requested.
     */
if there is a authenticator the authentication will take place, else null will be reutrned.
@param auth The UserAuthenticator.
@param authenticatorTypes An array of types describing the data to be retrieved.
@return A UserAuthenticationData object containing the data requested.
if there is a authenticator the authentication will take place else null will be reutrned . @param auth The UserAuthenticator . @param authenticatorTypes An array of types describing the data to be retrieved . @return A UserAuthenticationData object containing the data requested .
public static UserAuthenticationData authenticate(UserAuthenticator auth,
                                                      UserAuthenticationData.Type[] authenticatorTypes)
    {
        if (auth == null)
        {
            return null;
        }
        return auth.requestAuthentication(authenticatorTypes);
    }
public static UserAuthenticationData authenticate ( UserAuthenticator auth , UserAuthenticationData . Type [ ] authenticatorTypes ) { if ( auth == null ) { return null ; } return auth . requestAuthentication ( authenticatorTypes ) ; }
if there is a authenticator the authentication will take place, else null will be reutrned.
if there is a authenticator the authentication will take place else null will be reutrned .